#til

#TIL : Lock and unlock a user password

In 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