Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!im4u!rutgers!clyde!cbosgd!ihnp4!occrsh!occrsh.ATT.COM!tiger.UUCP!authorplaceholder From: rjd@tiger.UUCP Newsgroups: comp.unix.wizards Subject: Re: Built-in login command (/bin/lo Message-ID: <142700003@tiger.UUCP> Date: Mon, 15-Jun-87 18:49:00 EDT Article-I.D.: tiger.142700003 Posted: Mon Jun 15 18:49:00 1987 Date-Received: Sun, 21-Jun-87 10:43:24 EDT References: <91@decvax.UUCP> Lines: 17 Nf-ID: #R:decvax.UUCP:-9100:tiger.UUCP:142700003:000:655 Nf-From: tiger.UUCP!rjd Jun 15 17:49:00 1987 > Back at U. of NH, I discovered by accident that if > I ran /bin/login directly (not "exec" it, which the > builtin shell command "login" does) and logged into > an account with no password (they had a captive > account which ran /bin/who), when /bin/login exited > the entry in the /etc/utmp kept the new login name. > > Then (I don't know if it is true anymore) mail used > to use the /etc/utmp entry (given by: who am i) > instead of by uid (given by: whoami). Interesting, AT&T Sys V, release 2.0 and 3.0 's mail command uses your LOGNAME variable as a first choice as your ID when sending mail. (Probably and unimportant bug...) rjd