UUCP USERFILE
Chris Torek
chris at umcp-cs.UUCP
Sat Jul 5 03:45:46 AEST 1986
In article <121 at radha.UUCP> sanand at radha.UUCP (Sanand Patel) writes:
>As an aside, I don't see how uucp *could* get the login name with
>out searching /etc/passwd for the current UID. The only other (very
>unreliable) way is to find the major/minor of standard-input and search
>/dev and then search the 'who' file (utmp?). I *don't think* DEC would
>do this.
It is not unreliable, and in fact is rather common. There is a C
library routine, getlogin(), to do this. Incidentally (in re the
recent commotion in net.bugs.4bsd), this defeats the effect of
`su', but not that of `rlogin'.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1516)
UUCP: seismo!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at mimsy.umd.edu
More information about the Comp.unix.wizards
mailing list