Lock User Account in Linux
To lock a Linux User account, run
1 |
usermod -L USER_NAME_HERE |
You can verify the account is locked with command
1 |
passwd --status USER_NAME_HERE |
Example
See usermod
To lock a Linux User account, run
1 |
usermod -L USER_NAME_HERE |
You can verify the account is locked with command
1 |
passwd --status USER_NAME_HERE |
Example
See usermod