07 Sep 2017 • #til#TIL : Lock and unlock a user passwordtil sysadminIn Linux, you can prevent a user from login by locking it.Lock$ sudo passwd -l [user]Unlock$ sudo passwd -u [user]Enjoyed this post?If you found this helpful, consider sharing it or leaving a kudo!0 kudos
In Linux, you can prevent a user from login by locking it.Lock$ sudo passwd -l [user]Unlock$ sudo passwd -u [user]