From man usermod
:
Note: if you wish to lock the account (not only access with a password), you should also set the EXPIRE_DATE to 1.
- Why should we expire a locked account to totally prevent access to the account?
- What will happen if I do not expire a locked account?