4 Comments on “How to lock & unlock multiple users in Linux”

  1. What do you mean under locked user in this article?
    I expect when a user is locked it should not be able to login to the system in any way.
    But with `-l` it locks only user’s password according to man page
    Note that this does not disable the account. The user may still be able to login using another authentication token (e.g. an SSH key). To disable the account, administrators should use usermod –expiredate 1 (this set the account’s expire date to Jan 2, 1970).
    I suggest to rename article to `Lock User Password`

Leave a Reply

Your email address will not be published. Required fields are marked *