Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 232 Bytes

lock-and-unlock-a-user-password.md

File metadata and controls

19 lines (12 loc) · 232 Bytes
  • Date : 2017-09-07
  • Tags : #sysadmin

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]