* Change in v5.x LOGNAME shell variable and su
@ 2001-03-30 14:49 Davis, Alan
0 siblings, 0 replies; only message in thread
From: Davis, Alan @ 2001-03-30 14:49 UTC (permalink / raw)
To: tru64-unix-managers
Some of my scripts written under v4.x use both LOGNAME and USER variables.
Under v5.x some of the scripts are failing due to an apparent difference in
the way that su modifies the environment. Has anyone else run into this?
Under v5.x the LOGNAME variable isn't set to the effective username after an
su, it stays the original username. Here's an example :
v4.0e :
$ env | grep LOGNAME
LOGNAME=davis
$ env | grep USER
USER=davis
$ su - sysdavis
Password:
# env | grep LOGNAME
LOGNAME=sysdavis
# env | grep USER
USER=sysdavis
v5.1 :
$ env | grep LOGNAME
LOGNAME=davis
$ env | grep USER
USER=davis
$ su - sysdavis
Password:
# env | grep LOGNAME
LOGNAME=davis
# env | grep USER
USER=sysdavis
The manpage for su has been modified, but it doesn't accurately describe the
effect of su on the LOGNAME variable.
Alan Davis
davis@tessco.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-30 14:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-30 14:49 Change in v5.x LOGNAME shell variable and su Davis, Alan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox