1、通过工具(xmanager)连接
2、查看现在使用的账号信息

[root@tian991 ~]# id
uid=0(root) gid=0(root) groups=0(root)

3、通过命令“passwd”来修改密码

[root@tian991 ~]# passwd
Changing password for user root.
New password: 
Retype new password: 
Sorry, passwords do not match.
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.

在这里插入图片描述

Logo

更多推荐