Xref: utzoo comp.unix.admin:99 comp.unix.shell:135 Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!crdos1!davidsen From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) Newsgroups: comp.unix.admin,comp.unix.shell Subject: Re: Logging a User Off Message-ID: <2651@crdos1.crd.ge.COM> Date: 12 Sep 90 14:39:35 GMT References: <1990Sep11.173008.274@mccc.uucp> Reply-To: davidsen@crdos1.crd.ge.com (bill davidsen) Followup-To: comp.unix.admin Organization: GE Corp R&D Center, Schenectady NY Lines: 13 In article <1990Sep11.173008.274@mccc.uucp> pjh@mccc.uucp (Pete Holsberg) writes: | I though I would examine the return | 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? "kill -1 $$" should do it. I believe that you can simplify this by assigning no password but using the password ageing feature of SysV to force selection of a new password at login. -- bill davidsen (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen) VMS is a text-only adventure game. If you win you can use unix.