Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mailrus!uflorida!stat!sun13!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS,JIM) Newsgroups: comp.unix.questions Subject: Re: loginid vs. uid. Message-ID: <11399@hydra.gatech.EDU> Date: 16 Jul 90 01:23:58 GMT References: <232@twg.wimsey.bc.ca> Organization: Georgia Institute of Technology Lines: 15 in article <232@twg.wimsey.bc.ca>, bill@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@prism.gatech.edu