[root@niaoyun ~]# passwd
Changing password for user root.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
例2:当修改的用户为指定的普通用户,需要命令后面接上用户名字。[root@niaoyun ~]# passwd niaoyun
Changing password for user root.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.