{ 3 comments… read them below or add one }

1 V April 5, 2011 at 9:09 pm

The user can still login with shell set as /bin/false, he just can’t use the shell – this can be useful in some situations.

Reply

2 Chason Choate November 28, 2011 at 9:36 pm

Beware that “passwd -l …” will still allow a user with a ssh pub/pri key to login.

Reply

3 Andrew Taylor February 25, 2012 at 11:05 am

On CENT/RHEL5+ Locking/Unlocking the account will affect those users who use password-less logins and authenticate via pub/pri key. I can’t confirm this categorically on any other distribution.

Reply

Leave a Comment

Tagged as: , , , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: