Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!cbosgd!osu-cis!tut!tut.cis.ohio-state.edu!mumble@karl From: karl@mumble.cis.ohio-state.edu (Karl Kleinpaste) Newsgroups: comp.unix.wizards Subject: Re: gettydefs and the login prompt Message-ID: <2281@tut.cis.ohio-state.edu> Date: Wed, 25-Nov-87 12:38:32 EST Article-I.D.: tut.2281 Posted: Wed Nov 25 12:38:32 1987 Date-Received: Sun, 29-Nov-87 12:11:50 EST References: <4139@venera.isi.edu> <3516@xanth.UUCP> <32157@auc.UUCP> Sender: news@tut.cis.ohio-state.edu Reply-To: karl@tut.cis.ohio-state.edu Distribution: na Lines: 18 tab@auc.UUCP writes: The manual pages for sys V unix state that the prompt you get to log in comes from a field in gettydefs. In customizing my 3B2, I edited the login field of this file that originally said "login:" I changed the prompt to something different, but this new prompt will only show up on the first login attempt. If this login fails for some reason, the prompt goes back to "login:" even though I have edited out every occurence of this prompt in /etc/gettydefs. This is because by the time the second prompt comes up, it's no longer getty that's printing it; it's login itself, usually /bin/login. Getty runs long enough to get your terminal speed figured out and ask for you a login name, using the prompt from gettydefs; then it execs login, which asks for your password, verifies it and then execs your shell. If the password was wrong, it wants to try again. It doesn't know to check gettydefs; it just prints "login:" blindly. -=- Karl