Determine user dir from postinstall while root
Determine user dir from postinstall while root
- Subject: Determine user dir from postinstall while root
- From: Knud Hinnerk Möller <email@hidden>
- Date: Thu, 26 Jul 2007 10:36:35 +0100
Hi,
I have only recently started working with package maker, so please bear with me if this question is sounds stupid. I'm trying to manipulate a plist file which i expect to be in an ~/Library/Application Support/... folder. Determining the current user seems easy if don't require any authentification. However, if I do require admin authentification, the postinstall script is run as root. In that case, how can I find out, from the script (I'm using a perl script at the moment), which user actually started the installer package?
Cheers, Knud
------------------------------------------------- Knud Möller, MA +353 - 91 - 495086 Smile Group: http://smile.deri.ie Digital Enterprise Research Institute National University of Ireland, Galway Institiúid Taighde na Fiontraíochta Digití Ollscoil na hÉireann, Gaillimh
|
_______________________________________________
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