Linux "passwd" Command Usage



The passwd command changes a user’s own password. The original password for the account must be specified before a change will be allowed. By default, passwd is configured to require a strong password, consisting of lowercase letters, uppercase letters, numbers, and symbols, and is not based on a dictionary word. The super user can use the passwd command to change other user’s passwords.


Changing the other user password from root user

#passwd <USER NAME>

[root@CentOs ~]# passwd centosuser


Type a new password and hit enter
Retype the password for confirmation and hit enter again
If you proceed the steps correctly, you will see the successful message.

Note: If your password too weak, you will be warned about that in password changing process.




Tech info

Comments