Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!hal!ncoast!allbery From: allbery@ncoast.UUCP Newsgroups: comp.unix.wizards Subject: Re: Built-in login command (/bin/lo Message-ID: <2682@ncoast.UUCP> Date: Sat, 20-Jun-87 16:13:38 EDT Article-I.D.: ncoast.2682 Posted: Sat Jun 20 16:13:38 1987 Date-Received: Sun, 21-Jun-87 12:06:09 EDT References: <91@decvax.UUCP> <142700003@tiger.UUCP> <4705@columbia.UUCP> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: comp.unix.wizards Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 27 As quoted from <4705@columbia.UUCP> by francus@cheshire.columbia.edu (Yoseff Francus): +--------------- | In article <142700003@tiger.UUCP> rjd@tiger.UUCP writes: | >> 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. | > 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...) +--------------- This is especially dumb considering that System V fixed the "login" bug mentioned above (since the process ID of the process group leader is saved, /bin/login can check to see if it's being run by a non-login shell). ++Brandon -- Copyright (C) 1987 Brandon S. Allbery. Redistribution permitted only if the redistributor permits further redistribution. (Stargate take heed!) ---- Moderator for comp.sources.misc and comp.binaries.ibm.pc ---- Brandon S. Allbery {decvax,cbosgd}!cwruecmp!ncoast!allbery aXcess Company {ames,mit-eddie,talcott}!necntc!ncoast!allbery 6615 Center St. #A1-105 necntc!ncoast!allbery@harvard.HARVARD.EDU Mentor, OH 44060-4101 +01 216 974 9210 (also eddie.MIT.EDU)