1:修改系统中root用户的密码,只要直接输入命令即可,就是对root用户的密码修改。
[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.