Lock User Account in Linux

To lock a Linux User account, run

usermod -L USER_NAME_HERE

You can verify the account is locked with command

passwd --status USER_NAME_HERE

Example

Lock Linux User Account usermod

See usermod

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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