Linux how to modify the user's password

1. You are a regular user, then change the password with: passwd, it will make you first enter your old password, then enter the new password twice.
 

2. You are root, then use: password username, you can modify username password, and directly enter the new password twice on it, do not enter your old password.

Guess you like

Origin www.cnblogs.com/fangdecheng/p/11263513.html