LaunchAgent on Mac reports "Dubious ownership on file" error and won't load.
I'm using KBOX to uninstall old versions of Symantec and then install the latest Sym on reboot by using a LaunchAgent. The KBOX agent script downloads the zipped .plist file, unzips it and then moves it to the /Library/LaunchAgents folder on a Mac OS X.6.8 machine.
/usr/bin/ditto -x -k --rsrc "/Library/Application Support/Dell/KACE/data/scripts/106/com.syminstall.Custom.plist.zip" "/Library/Application Support/Dell/KACE/data/scripts/106/ComInstallPlistFolder"
/bin/mv "/Library/Application Support/Dell/KACE/data/scripts/106/ComInstallPlistFolder/com.syminstall.Custom.plist" "/Library/LaunchAgents/"
It wouldn't load, giving a "dubious ownership" error so I also asked the script to change the permissions to 664 and the owner to root.
/bin/chmod 644 "/Library/LaunchAgents/com.syminstall.Custom.plist"
/bin/chown root "/Library/LaunchAgents/com.syminstall.Custom.plist"
On reboot, however, the LaunchAgent still never loads, giving the same error as before. The Console says it gives this error: "launchctl: Dubious ownership on file (skipping): /Library/LaunchAgents/com.syminstall.Custom.plist"
Anyone have any ideas why it won't load?
did run into a couple of simular threads and they solved it by putting all the install files in the same folder, it looks like your install shell is in /Library/Application Support/Dell/KACE/data/scripts/106/InstallSymFolder and the package is in /Library/Application Support/Dell/KACE/data/scripts/106/SymantecEndpointProtectionFolder, try changing your deployment so everything is in one folder thefishyfew Placing it all into one folder has worked. Great idea! Thank you.