• 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: Dave Camp <email@hidden>
  • Date: Fri, 13 Apr 2007 11:10:54 -0700

On Apr 13, 2007, at 10:56 AM, Brian Ray wrote:

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.

I had thought of that, but su only takes a user name, not a uid.

Is it safe to do su $USER? I was hoping there was a simple way to just drop back to the real uid (maybe I'm being safety paranoid).

Thanks,
Dave

---
It's not denial. I'm just very particular about the reality I choose to accept. -Calvin


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

  • Prev by Date: Re: How do I drop elevated privileges in postflight?
  • Next by Date: Re: Get the package's NSBundle from a plugin
  • Previous by thread: Re: How do I drop elevated privileges in postflight?
  • Next by thread: Re: Installer project directory clarifications
  • Index(es):
    • Date
    • Thread