Logging a User Off

Jaye Mathisen mathisen at dali.cs.montana.edu
Wed Sep 12 12:55:01 AEST 1990


In article <1990Sep11.173008.274 at mccc.uucp> pjh at 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.



More information about the Comp.unix.admin mailing list