Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!usc!apple!vsi1!wyse!bob From: bob@wyse.wyse.com (Bob McGowen x4312 dept208) Newsgroups: comp.unix.questions Subject: Re: loginid vs. uid. Message-ID: <2793@wyse.wyse.com> Date: 18 Jul 90 00:44:18 GMT References: <232@twg.wimsey.bc.ca> <11399@hydra.gatech.EDU> <234@twg.wimsey.bc.ca> Sender: news@wyse.wyse.com Reply-To: bob@wyse.UUCP (Bob McGowen x4312 dept208) Organization: Wyse Technology Lines: 23 In article <234@twg.wimsey.bc.ca> bill@twg.wimsey.bc.ca (Bill Irwin) writes: >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: ---- > >[....] >$ 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 ---- Consider the name of the variable. It should point to your login name regardless of whom you su to or how you su, I would think. Just like a 'who am i' looks in /etc/utmp (I believe) and gets your login name even if you are su'ed to another user. This seems like proper behavior to me. Bob McGowan (standard disclaimer, these are my own ...) Product Support, Wyse Technology, San Jose, CA ..!uunet!wyse!bob bob@wyse.com