loginid vs. uid.
BURNS,JIM
gt0178a at prism.gatech.EDU
Tue Jul 17 03:51:30 AEST 1990
in article <234 at twg.wimsey.bc.ca>, bill at 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 at prism.gatech.edu
More information about the Comp.unix.questions
mailing list