Xref: utzoo comp.unix.admin:344 comp.unix.shell:639 Path: utzoo!attcan!uunet!mcsun!ukc!mucs!liv-cs!liv!fish From: FISH@LIVERPOOL.AC.UK Newsgroups: comp.unix.admin,comp.unix.shell Subject: Re: Logging a User Off Message-ID: <90292.120005FISH@LIVERPOOL.AC.UK> Date: 19 Oct 90 11:00:05 GMT References: <1990Sep11.173008.274@mccc.uucp> <15051@cbmvax.commodore.com> Organization: University of Liverpool Lines: 14 I know this might sound a little obvious but have you tried sourcing the script that checks if the entry in /etc/passwd is has no password set rather than running it? Remember scripts are run in a sub shell so exit will exit from this sub shell rather than the login shell? I thought that you could perhaps try running login again but this will not if you are not in the login shell. Alternatively you could exit from your script with the return code from passwd and use it in the top-level script. Hope this is of some use. Francis Fish Programmer / Analyst Liverpool University Computer Laboratory fish@uk.ac.liverpool