先用普通用户登陆,打开系统工具-终端
输入命令:su -
输入root密码
输入命令:gedit /etc/pam.d/gdm
在文本编辑器中注释掉"auth required pam_succeed_if.so user != root quiet"这一行(这一行前面加上"#",即改成#auth required pam_succeed_if.so user != root quiet),其他的不要动,否则会进不去系统的(进不了图形界面,控制台可以进入)。
保存后退出,现在就能使用root登录了