Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ulysses.UUCP Path: utzoo!watmath!clyde!burl!ulysses!smb From: smb@ulysses.UUCP (Steven Bellovin) Newsgroups: net.micro.att,net.unix-wizards Subject: Re: Bizzare paranoia of /bin/login on 3b2 Message-ID: <1082@ulysses.UUCP> Date: Fri, 6-Sep-85 09:06:37 EDT Article-I.D.: ulysses.1082 Posted: Fri Sep 6 09:06:37 1985 Date-Received: Sat, 7-Sep-85 06:49:46 EDT References: <174@chinet.UUCP> Organization: AT&T Bell Laboratories, Murray Hill Lines: 23 Xref: watmath net.micro.att:522 net.unix-wizards:14737 > I have experienced a bizzare problem with logging in on the console > on our 3b2. Here's what would happen: Unix: would send login: , I > would reply, then Unix would send Login incorrect immediately without > asking for a password. I immediately feared that something happened > to /etc/passwd. But I went to other terminals and was able to login > without any problem. Then I found that the console would allow me to > login as guest, which didn't have a password, but from guest, su > replied with Sorry without asking for a password. When on as guest, > the ps command reported that my login -sh was not associated with > a terminal. > The only major change I had recently made of significance was > to change a line in /etc/inittab from a uugetty to a shell script > that did a few things, then exec'd uugetty. Doing a ps from another > terminal revealed that this shell script was associated with console. > So apparently, for some reason INIT made the shell script in > console group, and when login started up on the console it didn't like > having another process associated with console and got suspicious. > Switching back the /etc/inittab line solved the problem. It's not a matter of suspicion or paranoia; rather, because something else had the console open first the getty for it didn't get the proper process group, and hence getpass() couldn't open /dev/tty. I've seen this once or twice myself; rebooting made the problem go away.