找到以下兩個檔案
/etc/pam.d/gdm
/etc/pam.d/gdm-password
用"#"
auth required pam_succeed_if.so user != root quiet
將整行註解