LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 12:49 AM   #1
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
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, 02:03 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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, 04:01 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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, 11:54 AM   #5
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

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


Reply



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 07:26 AM
Disable Root Login Via SSH = Why? carlosinfl Linux - Security 4 10-11-2006 12:32 PM
Disable root login n00bified Slackware 8 07-17-2006 04:42 AM
How can I disable root login with SSH? blk96gt Slackware 9 10-02-2004 07:09 AM
Disable GUI Login and Config StartX firefly2442 Linux - Newbie 6 07-21-2003 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:09 PM.

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
Open Source Consulting | Domain Registration