• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How can I "un-sudo" in postflight?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How can I "un-sudo" in postflight? (From: Mitchell J Laurren-Ring <email@hidden>)
 >Re: How can I "un-sudo" in postflight? (From: Per Olofsson <email@hidden>)
 >Re: How can I "un-sudo" in postflight? (From: Greg Neagle <email@hidden>)
 >Re: How can I "un-sudo" in postflight? (From: Per Olofsson <email@hidden>)
 >Re: How can I "un-sudo" in postflight? (From: Allen Hancock - Watchman Monitoring <email@hidden>)

  • Prev by Date: Re: How can I "un-sudo" in postflight?
  • Next by Date: icon in Dock
  • Previous by thread: Re: How can I "un-sudo" in postflight?
  • Next by thread: Re: How can I "un-sudo" in postflight?
  • Index(es):
    • Date
    • Thread