Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.unix-wizards Subject: Re: UUCP USERFILE Message-ID: <2266@umcp-cs.UUCP> Date: Fri, 4-Jul-86 13:45:46 EDT Article-I.D.: umcp-cs.2266 Posted: Fri Jul 4 13:45:46 1986 Date-Received: Sat, 5-Jul-86 06:45:19 EDT References: <1759@brl-smoke.ARPA> <976@decuac.DEC.COM> <121@radha.UUCP> Reply-To: chris@maryland.UUCP (Chris Torek) Organization: University of Maryland, Dept. of Computer Sci. Lines: 15 In article <121@radha.UUCP> sanand@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@umcp-cs ARPA: chris@mimsy.umd.edu