Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!bionet!ames!ncar!mephisto!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS,JIM) Newsgroups: comp.unix.questions Subject: Re: loginid vs. uid. Message-ID: <11428@hydra.gatech.EDU> Date: 16 Jul 90 17:51:30 GMT References: <234@twg.wimsey.bc.ca> Organization: Georgia Institute of Technology Lines: 12 in article <234@twg.wimsey.bc.ca>, bill@twg.wimsey.bc.ca (Bill Irwin) says: > 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 However, you could always run your applications from a script where you say LOGNAME=`whoami`. If you don't have whoami, I would imagine a simple 'c' program that does a getuid() and a lookup on /etc/passwd would suffice. -- 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