How do I drop elevated privileges in postflight?
How do I drop elevated privileges in postflight?
- Subject: How do I drop elevated privileges in postflight?
- From: Dave Camp <email@hidden>
- Date: Fri, 13 Apr 2007 10:36:15 -0700
I've got an installer with a postflight script that performs some
needed actions after the install is done. Our client wants the
installer to open the user's default browser to a registration page
on their website when the installation is complete, so I added a
"open http://www.foo.com" to the end of the script.
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).
What is the best way to fix this? Is there a better way to get the
real users browser open, or is there a way I can get the rest of my
script to run without elevated privileges (I know how to do that in
C, I just can't figure out the right incantation in a shell script)?
Thanks,
Dave
---
In English, every word can be verbed.
_______________________________________________
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