Xref: utzoo comp.unix.admin:106 comp.unix.shell:141 Path: utzoo!utgpu!watserv1!watmath!att!occrsh!uokmax!apple!julius.cs.uiuc.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali.cs.montana.edu!mathisen From: mathisen@dali.cs.montana.edu (Jaye Mathisen) Newsgroups: comp.unix.admin,comp.unix.shell Subject: Re: Logging a User Off Message-ID: <2409@dali> Date: 12 Sep 90 02:55:01 GMT References: <1990Sep11.173008.274@mccc.uucp> Followup-To: comp.unix.admin Organization: Montana State University, Dept. of Computer Science, Bozeman MT 59717 Lines: 12 In article <1990Sep11.173008.274@mccc.uucp> pjh@mccc.uucp (Pete Holsberg) writes: >code of the passwd command and then exit if it's not 0. BUT, simply >executing "exit" doesn't abort the login; it aborts /etc/profile! What >can I execute to terminate the login of a user who fails to select a >valid password? Well, long ago I ran into something like this. My cheap cop-out kludge was to 'exec /bin/login', and let things run their course. If they didn't log in in the timeout interval, getty would takeover, otherwise if they got logged in, the user would have another chance to get things right.