#TIL : Lock and unlock a user password


07 Sep 2017 / by KhanhIceTea

In Linux, you can prevent a user from login by locking it.

Lock

$ sudo passwd -l [user]

Unlock

$ sudo passwd -u [user]

Sound good ?