LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 04-23-2008, 04:45 AM   #1
shivanrathore
Member
 
Registered: Apr 2008
Posts: 33

Rep: Reputation: 15
Root login disabling in GUI


Can somebody help me -would like to disable root login only in GUI
 
Old 04-23-2008, 09:15 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Um - you mean, you don't want users to have access to "su"? But you want to be able to log-in as "root" at the start?

It's not clear what this will solve - if the root password is not secure, it doesn't matter.

The most complete approach is to randomize the root password, and enable sudo for one user. Now nobody knows how to log in as root and nobody needs to.
 
Old 05-12-2008, 05:23 PM   #3
tamusjroyce
LQ Newbie
 
Registered: May 2008
Location: Illinois
Distribution: Gentoo Linux
Posts: 1

Rep: Reputation: 0
I think he means disabling root access to X11

I believe he means disabling root access to X11 all together--not enabling console access on bootup.

I also want to know how to do this in two cases:
1. You are in xdm (kdm or gdm) and you try to log in as root (by habit).
2. You boot up in the console (by selecting console boot up in grub or lilo), log in as root, and execute startx, startkde, gnome-session, ...

In both cases I want to know how to disable X from allowing this. Then I want to know how to revert back to allowing root to access the X server again (well, probably a given, but just in case).

My guess is that it's a file permission based thing where root isn't allowed to read or execute from X directory, but the point of root is to be able to read/write/execute everywhere, so that can't work.

Maybe it's X which holds which users can and can't load up X, or if it has an option in it's configuration somewhere to disallow X from being accessed by root.

I'll agree that it's a cleaver idea to scramble the root password, but there is still an extremely big security whole when someone su's into root and accesses X by running a gui program--which is why kdesu and such exists to run a root program through a user's X...

Randomizing the root password only increases security when combined with what I want to know, so thanks very much, Simon Bridge, for that idea. That is something I will do in the meantime : )

In any case, any info would be appreciated. This is also the first link in google when searching "root access to gui," so maybe by answering this for me you can help others searching for an answer too...

Thanks in advance,

Tamus Royce

Last edited by tamusjroyce; 05-12-2008 at 06:06 PM. Reason: refuting to just randomize the root password, though it is an excellent idea to do so anyways
 
  


Reply

Tags
access, root, x11


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
root login to GUI Red Barchetta Linux - Newbie 1 03-19-2007 04:58 AM
Can't login as root in GUI ashutosh mehra Linux - Desktop 3 08-28-2006 06:07 PM
Disabling root login and using another username for administration mrdesai Fedora 3 08-15-2006 12:08 PM
Disabling root login via SSH moger Linux - Security 7 06-20-2004 03:55 PM
GUI root login? LinuxSeeker Linux - General 6 02-15-2004 09:02 AM


All times are GMT -5. The time now is 10:06 AM.

Main Menu
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