Re: Odd question relating to preinstall scripts and administrator access
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Best wishes, Scott -- Dr. Scott Russell IT Support Engineer/Consultant Arts & Letters Computing, Distributed Support Services, Office of Information Technologies, University of Notre Dame Instructor of Horn, University of Notre Dame and Saint Mary's College Assistant Horn, South Bend Symphony Orchestra 234 Decio Hall 574-631-7021 ScottRussell@nd.edu http://www.nd.edu/~srussel2/ On Jul 31, 2008, at 4:47 PM, Stéphane Sudre wrote: On Jul 31, 2008, at 10:27 PM, Scott Russell wrote: Hello Cameron, On the contrary, you get the currently logged user. _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... Really? I'll stand corrected. I haven't done this in a while but based on Cameron's e-mail, it sounded like he was getting not the user name he was expecting. I seemed to remember (perhaps incorrectly) that $USER would return root in those conditions and that would be the source of his problems. At any rate, my convoluted "who" solution should still return the value he's looking for. *shrug* when you do "$USER" in a postflight script that has root privs, you'll get "root" back as the $USER. This email sent to site_archiver@lists.apple.com
participants (1)
-
Scott Russell