Unlock Linux User

Once in a while, we might want to unlock a user from deployment. This section guides you on how to unlock a user.

Check Lock Status

Before unlocking the account, you want to make sure that the user account is locked at the first place.

Unlock User

To unlock user, simply use the -U argument from usermod command:

$ usermod -U <user>

Example, to unlock james account:

$ usermod -U james

That's all for unlocking user account.