如果不是root登陆,先切换到root
sudo root
然后按提示输入root用户的密码。
[root@localhost ~]# passwd
Changing password for user root.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
如果不是root登陆,先切换到root
sudo root
然后按提示输入root用户的密码。
[root@localhost ~]# passwd
Changing password for user root.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.