Re: How do I drop elevated privileges in postflight?
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