loginid vs. uid.
BURNS,JIM
gt0178a at prism.gatech.EDU
Mon Jul 16 11:23:58 AEST 1990
in article <232 at twg.wimsey.bc.ca>, bill at twg.wimsey.bc.ca (Bill Irwin) says:
> How do you change your logname to "wimp" when you "su - wimp"? I have an
> email application that uses the logname to determine which directory
> structure to deal with in mail sessions, which makes it impossible to su
> to another user and read their mail.
Interestingly enough, /bin/who, invoked as 'who am i' usually reports the
account you su'd from, whereas /usr/bin/whoami (or /usr/ucb/whoami) usually
reports the account you su'd to. And of course, $LOGNAME will depend on
whether you used the '-' flag to su or not.
--
BURNS,JIM
Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332
uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a
Internet: gt0178a at prism.gatech.edu
More information about the Comp.unix.questions
mailing list