LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to disable root login in GUI (RHEL5)? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-disable-root-login-in-gui-rhel5-745480/)

saagar 08-06-2009 12:49 AM

How to disable root login in GUI (RHEL5)?
 
Friends,
please let me know what configuration need to be made so that root user
will not be able to log in via gui.
I am aware that taking out tty? from /etc/securetty would result in root not able to log in via CLI modes.
Similarly what is the configuration needed to make that work in GUI.?

thanks.

unSpawn 08-06-2009 02:03 AM

Depending on your display manager (GDM here), in /etc/X11/gdm/gdm.conf(-custom), in the "[security]" section, having the "AllowRoot=false" and "AllowRemoteRoot=false" directives?

linuxlover.chaitanya 08-06-2009 04:01 AM

In RHEL5 you should be able to change it in /usr/share/gdm/defaults.conf file.

unSpawn 08-06-2009 04:19 AM

Quote:

Originally Posted by linuxlover.chaitanya (Post 3633320)
In RHEL5 you should be able to change it in /usr/share/gdm/defaults.conf file.

Could but should not:
Code:

]$ head -5 /usr/share/gdm/defaults.conf
# GDM Configuration file.
#
# This file should not be updated by hand.  Since GDM 2.13.0.4,
# configuration choices in the /etc/X11/gdm/gdm.conf-custom file will
# override the default values specified in this file
(installation


saagar 08-06-2009 11:54 AM

thanks a lot...Unspawn and chaitanya...!


All times are GMT -5. The time now is 11:07 AM.