LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-06-2009, 01:49 AM   #1
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 36
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.
 
Old 08-06-2009, 03:03 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,744
Blog Entries: 54

Rep: Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973
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?
 
Old 08-06-2009, 05:01 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
In RHEL5 you should be able to change it in /usr/share/gdm/defaults.conf file.
 
Old 08-06-2009, 05:19 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,744
Blog Entries: 54

Rep: Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973
Quote:
Originally Posted by linuxlover.chaitanya View Post
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
 
Old 08-06-2009, 12:54 PM   #5
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 36
thanks a lot...Unspawn and chaitanya...!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
disable root login shivanrathore Linux - Security 6 07-15-2008 08:26 AM
Disable Root Login Via SSH = Why? carlosinfl Linux - Security 4 10-11-2006 01:32 PM
Disable root login n00bified Slackware 8 07-17-2006 05:42 AM
How can I disable root login with SSH? blk96gt Slackware 9 10-02-2004 08:09 AM
Disable GUI Login and Config StartX firefly2442 Linux - Newbie 6 07-22-2003 12:02 AM


All times are GMT -5. The time now is 12:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration