Linux : How to Change User Password and Lock Unlock User

To change your own password, use following command:

$ passwd

To change other users password, your login must be as root:

# passwd
# passwd linuxuser1




To lock user account, use following command, your login must be as root:

# passwd -l username

To unlock user account, use following command, your login must be as root:

# passwd -u username

Leave a Reply

Your email address will not be published.