• 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 do I drop elevated privileges in postflight?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I drop elevated privileges in postflight?


  • Subject: Re: How do I drop elevated privileges in postflight?
  • From: Brian Ray <email@hidden>
  • Date: Fri, 13 Apr 2007 12:56:58 -0500


On Apr 13, 2007, at 12:36 PM, Dave Camp wrote:


However, I've discovered that since the script is running as root, open launches root's default browser (Safari), not the default browser of the real user (e.g. FireFox).

One way might be to run something as a specific user is to use "su" see man page for su and open:


  su bray -c "open http://kazavoo.com";

Where the username of the person running the installer is bray. You can use the UID also.

hth,

Brian Ray
email@hidden
http://kazavoo.com/blog


_______________________________________________ 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 do I drop elevated privileges in postflight?
      • From: Dave Camp <email@hidden>
References: 
 >How do I drop elevated privileges in postflight? (From: Dave Camp <email@hidden>)

  • Prev by Date: How do I drop elevated privileges in postflight?
  • Next by Date: Re: How do I drop elevated privileges in postflight?
  • Previous by thread: How do I drop elevated privileges in postflight?
  • Next by thread: Re: How do I drop elevated privileges in postflight?
  • Index(es):
    • Date
    • Thread