Path: utzoo!utgpu!watserv1!watmath!att!rutgers!ucsd!pacbell.com!decwrl!ucbvax!van-bc!twg!bill From: bill@twg.wimsey.bc.ca (Bill Irwin) Newsgroups: comp.unix.questions Subject: Re: loginid vs. uid. Message-ID: <234@twg.wimsey.bc.ca> Date: 16 Jul 90 06:32:08 GMT References: <232@twg.wimsey.bc.ca> <11399@hydra.gatech.EDU> Organization: TWG The Westrheim Group, Vancouver, B.C., Canada Lines: 23 In <11399@hydra.gatech.EDU> gt0178a@prism.gatech.EDU (BURNS,JIM) writes: $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. [....] $ And of course, $LOGNAME will depend on $whether you used the '-' flag to su or not. Not on my system it doesn't. I have SCO XENIX V/386 2.3.2 and I get my original logname whether I use "-" in the su, or not. From replies I've been getting, I'm getting the impression that using the "-" should change the output of "logname" to that of the user changed to. Mine doesn't. 8^| -- Bill Irwin - TWG The Westrheim Group - Vancouver, BC, Canada ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ uunet!van-bc!twg!bill (604) 431-9600 (voice) | UNIX Systems bill@twg.wimsey.bc.ca (604) 431-4629 (fax) | Integration