centos
如果不是以root用户登录的,请先切换到root用户下,执行命令
su root
然后按提示输入root用户的密码。
[root@localhost ~]# passwd
Changing password for user root.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
如果不是以root用户登录的,请先切换到root用户下,执行命令
su root
然后按提示输入root用户的密码。
[root@localhost ~]# passwd
Changing password for user root.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.