【Linux】su root出现Authentication failure

来源:互联网 发布:linux vim c语言 编辑:程序博客网 时间:2024/06/04 08:57

这是因为root默认未激活,应该是刚安装系统还未激活吧,手动激活一下(换root密码也可以用这个方法):

[ht@localhost ~]$ sudo passwd[sudo] password for ht:         //输入你的用户密码Changing password for user root.New password:                  //输入root新密码BAD PASSWORD: The password fails the dictionary check - it is based on a dictionary wordRetype new password:           //重新输入root密码passwd: all authentication tokens updated successfully.[hansight@localhost ~]$ su     //现在就可以用su命令到root了Password:                      //用你刚刚新换的密码[root@localhost hansight]# 
原创粉丝点击