Logging a User Off

FISH at LIVERPOOL.AC.UK FISH at LIVERPOOL.AC.UK
Fri Oct 19 21:00:05 AEST 1990


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 at uk.ac.liverpool



More information about the Comp.unix.shell mailing list