• 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 08:06:46 +0000
  • Thread-topic: How can I "un-sudo" in postflight?

2 dec 2013 kl. 20:40 skrev Mitchell J Laurren-Ring <email@hidden>:

> How do execute something from postflight as "not root", preferably the installing user?

Here’s the script I use to launch commands for every currently logged in console user in the correct bootstrap context:

  https://github.com/MagerValp/Scripted-Mac-Package-Creation/blob/master/scripts/postinstall

Details, read carefully:

  https://lists.macosforge.org/pipermail/launchd-dev/2011-January/000890.html

--
Per Olofsson, IT-service, 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


  • Follow-Ups:
    • Re: How can I "un-sudo" in postflight?
      • From: Greg Neagle <email@hidden>
References: 
 >How can I "un-sudo" in postflight? (From: Mitchell J Laurren-Ring <email@hidden>)

  • Prev by Date: Re: How can I "un-sudo" in postflight?
  • Next by Date: Re: How can I "un-sudo" in postflight?
  • 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