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?
usermod -L -e 300 username
? The account will be expired entirely? – Sinoosh Oct 12 '18 at 18:18Oct 28, 1970
which makes account expired. – Ravexina Oct 12 '18 at 18:25