用另外的用户登录,或者用SSH终端登录,将/etc/pam.d/gdm文件中的auth required pam_succeed_if.so user != root quiet注释掉(在此行前加“#”号)