Re: How can I "un-sudo" in postflight?
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 <per.olofsson@gu.se> wrote:
3 dec 2013 kl. 15:07 skrev Greg Neagle <Greg.Neagle@disneyanimation.com>:
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 (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)
-
Allen Hancock - Watchman Monitoring