[juneau-lug] lock user account with a warning

  • From: James Zuelow <e5z8652@xxxxxxxxxx>
  • To: juneau-lug@xxxxxxxxxxxxx
  • Date: Sun, 8 Oct 2006 14:13:07 -0800

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.

Other related posts: