Re: How can I "un-sudo" in postflight?
Re: How can I "un-sudo" in postflight?
- Subject: Re: How can I "un-sudo" in postflight?
- From: Per Olofsson <email@hidden>
- Date: Tue, 03 Dec 2013 18:03:36 +0000
- Thread-topic: How can I "un-sudo" in postflight?
3 dec 2013 kl. 17:59 skrev Allen Hancock - Watchman Monitoring <email@hidden>:
> Given that launchctl asuser is 10.7+, for the launchagent I plan on testing tonight, would it be safe to say that
>
> On Dec 2, 2013, at 4:47 PM, Bill Coderre wrote:
>>> su $ENV{'USER'} -c "launchctl load /Library/LaunchAgents/com.our.cool.plist"
>
> Would work on 10.5 -> 10.9?
This will load the launch agent in a bootstrap context different from that of any logged in users.
--
Per Olofsson
System Administrator, IT-services, University of Gothenburg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden