[juneau-lug] Re: lock user account with a warning

You can change there default shell to /sbin/nologin or /bin/false



On Sun, 2006-10-08 at 14:13 -0800, James Zuelow wrote:
> Does anyone know of a method to lock a user account and present a message or 
> warning when that user attempts to log in?
> 
> issuing `passwd -l user` will lock the user account out - but the system will 
> just tell them that they typed the wrong password.
> 
> What I'd like is for the system to give an arbitrary message when they fail -
> 
> "Your account is locked until you clean your room"
> 
> is the specific message I have in mind.
> 
> Ideas?
> ------------------------------------
> The Juneau Linux Users Group -- http://www.juneau-lug.org
> This is the Juneau-LUG mailing list.
> To unsubscribe, send an e-mail to juneau-lug-request@xxxxxxxxxxxxx with the 
> word unsubscribe in the subject header.
> 

------------------------------------
The Juneau Linux Users Group -- http://www.juneau-lug.org
This is the Juneau-LUG mailing list.
To unsubscribe, send an e-mail to juneau-lug-request@xxxxxxxxxxxxx with the 
word unsubscribe in the subject header.

Other related posts: