Symptom: Sometimes, after installing the Mac Enterprise Agent, you might receive the error "Insecure Startup Item disabled", preventing the Agent from running.

 

Causes:

  • The Agent was not installed with correct permissions

Prerequisites:

  • An Agent installer MPKG configured with your public certificate (follow steps 1-6 in this article)

Resolution:

  1. Uninstall the existing Agent
  2. Copy the configured Agent installer MPKG to the local machine
  3. Open a Terminal window
  4. Navigate to the folder containing the MPKG file
  5. Run the following command to give the Agent installer correct permissions:
    sudo chmod -R 755
  6. Run the following command to reinstall the Agent (after running the command, you should receive the message "upgrade successful"):
    sudo installer -pkg -target /
  7. Run the following commands to give the Agent start entry proper permissions and ownership:
    sudo chmod -R 755 /Library/StartupItems/AccessDataAgent
    sudo chmod 644 /Library/StartupItems/AccessDataAgent/StartupParameters.plist
    sudo chown -R root:wheel /Library/StartupItems/AccessDataAgent
  8. Reboot