• 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
Determine user dir from postinstall while root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Determine user dir from postinstall while root
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: shell command inside InstallationCheck script not working while run with installer
  • Next by Date: Re: Determine user dir from postinstall while root
  • Previous by thread: shell command inside InstallationCheck script not working while run with installer
  • Next by thread: Re: Determine user dir from postinstall while root
  • Index(es):
    • Date
    • Thread