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: Allen Hancock - Watchman Monitoring <email@hidden>
- Date: Tue, 03 Dec 2013 10:59:26 -0600
I've been watching this with interest.
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?
Thanks
-Allen
PS Bill thank you, and I'm still poking along on 10.8, so it was simple to replace the quotes ;-)
On Dec 3, 2013, at 8:56 AM, Per Olofsson <email@hidden> wrote:
> 3 dec 2013 kl. 15:07 skrev Greg Neagle <email@hidden>:
>
>> Any script that loops through existing local users and does special stuff to each account doesn't take into account users that are created/added _after_ your software is installed. If the machine is connected to a network directory service, either you miss network users, or you (probably incorrectly) modify files in perhaps thousands of network user's homes.
>
>
> Agreed, never do that. However, if all you do is place a launch agent in the system and want to load it into existing sessions without requiring a logout, that works fine.
--
Allen Hancock - Watchman Monitoring - A consultant's best friend
+1-408-352-6145
Help articles at http://support.watchmanmonitoring.com
_______________________________________________
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