Re: Launchd scripts with root access
LaunchAgents run in user context. Move your launchd job to /Library/LaunchDaemons to get it run as root. On Wed, Jun 27, 2012 at 4:22 PM, Chris Waldrip <cwaldrip@me.com> wrote:
We have a script that we want to update automatically. The script checks for a new version when it runs, and it downloads a zip file, expands that, and installs the contents.
The script is executed from a plist in /System/Library/LaunchAgent/, so it should have root authorization.
Yet when the script runs and it executes the installer command line tool, the install fails for lack of root permission.
I modified the script to simply move (mv -f) the specific components to the appropriate locations (/System/Library/LaunchAgent, etc). But the move fails for lack of root permission.
What am I missing? :-(
-Chris Waldrip _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/wagener%40gmail.com
This email sent to wagener@gmail.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Harald Wagener