who am i?
Stephen Riehm [Romulis]
s887212 at minyos.xx.rmit.oz.au
Tue Nov 27 14:37:22 AEST 1990
I am writing a program that needs to know who is running it. at the moment
I am using getuid() to index into the /etc/passwd file for the details
needed (like name etc). However I have noticed that it doesn't always
return the right response after the process table (I assume) gets a bit
messed up. (Xterms do wonderful things to the process table dont they?! :)
Is there a GUARANTEED way of getting the information about the user?
I dont want to rely on environment variables as they can easily be forged
or not set by the user.
I am using a multimax with UMAX (SysV).
any hints?
More information about the Comp.unix.questions
mailing list