loginid vs. uid.
Bill Irwin
bill at twg.wimsey.bc.ca
Mon Jul 16 16:32:08 AEST 1990
In <11399 at hydra.gatech.EDU> gt0178a at prism.gatech.EDU (BURNS,JIM) writes:
$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.
[....]
$ 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 at twg.wimsey.bc.ca (604) 431-4629 (fax) | Integration
More information about the Comp.unix.questions
mailing list