Re: Odd question relating to preinstall scripts and administrator access
Re: Odd question relating to preinstall scripts and administrator access
- Subject: Re: Odd question relating to preinstall scripts and administrator access
- From: Scott Russell <email@hidden>
- Date: Thu, 31 Jul 2008 17:06:50 -0400
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*
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
email@hidden
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,
when you do "$USER" in a postflight script that has root privs,
you'll get "root" back as the $USER.
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden