LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2009, 08:35 PM   #1
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Rep: Reputation: 30
How to login as root to GUI of CentOS 5.3?


How to login as root to Graphic Mode in CentOS 5.3?
 
Old 09-13-2009, 08:48 PM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
It should be easy. Unlike some other distributions, root GUI login isn't automatically disabled.

So I think you need to tell use a bit more about your situation. (New install? Or picking up support for a server someone else customized? Or what?).

I have installed Centos 5.3 on a few systems. I don't recall exact details, but during the install process it asked for a root password, which I provided. Later in the install process, it rebooted and I logged in as root in GUI (Gnome) to customize the install. There was nothing tricky about logging in as root.
 
Old 09-13-2009, 09:00 PM   #3
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
You can log with command line and then user "startx" to start Gnome. But using a root account for X is not a good idea, consider using sudo (I know how it sound, but it is true, it is really more secure and prevent accidents).
 
Old 09-13-2009, 09:15 PM   #4
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
I know about security risk. But sometime I need GUI to do the job. I need full privilege in GUI to process. As I mention above, I'm running CentOS 5.3.
 
Old 09-14-2009, 04:02 AM   #5
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
Is it possible to login GUI as root on CentOS 5.3?
 
Old 09-14-2009, 07:53 AM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by k_oudom View Post
Is it possible to login GUI as root on CentOS 5.3?
Yes. I have done so several times. It required no special action compared to logging in GUI as an ordinary account.

I will assume you are responsible enough to exercise appropriate care while logged in GUI as root. You have seen the advice telling you not to do so at all. I can't say for sure that they are wrong. But I disagree with them.

Quote:
Originally Posted by k_oudom View Post
But sometime I need GUI to do the job.
Almost any system admin task that can be done via GUI could also be done by command line if you know how (I generally don't know how). Individual GUI programs can be run as root even while logged in GUI as non root. That is safer then having the whole GUI desktop root.

I personally balance the high probability of mistakes caused by being distracted by the extra overhead of doing things the "safer" way vs. the lower probability of doing something destructive in the side activities (anything that didn't really need to be root run during the necessary root activities). So I decide to use root GUI when I need to do any root activities that aren't easy otherwise.

But I do use and advise a dual login when doing something complex as GUI root that requires online searches for instructions or other details:

At work (using Centos and Windows) I use some form of remote desktop so the browser I use for searching the instructions is not on the same account nor even the same computer as the one on which I am using root GUI.

At home (Mepis) I just use Ctrl-Alt-F7/F8 to switch between a non root GUI running browser etc. and a root GUI running what needs to be root (and of course the desktop style is very different so I am constantly reminded which is which).

Last edited by johnsfine; 09-14-2009 at 08:06 AM.
 
Old 09-14-2009, 08:03 AM   #7
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by k_oudom View Post
Is it possible to login GUI as root on CentOS 5.3?
Are you getting any error messages? Did you try login?
 
  


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
Root login for GUI ashwini.naidu Linux - Newbie 5 12-22-2008 04:55 AM
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
GUI root login? LinuxSeeker Linux - General 6 02-15-2004 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:23 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
Open Source Consulting | Domain Registration