By default, the ‘
root‘ user is forbidden to login via the GNOME Display Manager (GDM) in Fedora 13. Though this is a very impressive security feature, for a personal computer/laptop, it would be useful to be able to login as ‘
root‘ via GDM.
To enable Superuser Login via the GNOME Display Manager in Fedora, two files have to be modified.
su –c “vi /etc/pam.d/gdm”
Since the file ‘
gdm‘ can only be modified by ‘
root‘ user, it mandates the need of using ‘
su -c‘ command.
Search for the line – ‘
auth required pam_succeed_if.so user !=root quiet’, either delete the line (if this is your personal computer) or comment it by prefixing the character ‘
#’ as portrayed below. This allows you to revert the changes if necessary. Save the updated file.
#auth required pam_succeed_if.so user != root quiet
As an alternative, you can also consider replacing the word ‘
root’ in the above line with some other user ID, say ‘
auth required pam_succeed_if.so user != test quiet
Following the similar procedure, update the file
/etc/pam.d/gdm-password. You should be able to login as ‘
root‘ via GDM now.