getuid() and geteuid() on Ultrix 2.
kai at uicsrd.csrd.uiuc.edu
kai at uicsrd.csrd.uiuc.edu
Tue Nov 1 20:07:00 AEST 1988
The "getlogin()" call returns the userid from the entry for the control
terminal in /etc/utmp, usually, the userid used to login on that terminal.
However, inside programs that use pseudo terminals, such as script, window,
etc., this call returns NULL, because those programs don't make utmp entries
for the pseudo terminal.
Patrick Wolfe (pwolfe at kai.com, uunet!kailand!pwolfe)
More information about the Comp.unix.wizards
mailing list