Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-14-2005, 04:03 PM   #1
LQ Newbie
Registered: Nov 2005
Posts: 19

Rep: Reputation: 0
Question log in as root on x-server

I have a Ubuntu system and GNOME as x-server.. but i wonder how you do to log in as root on the x-server and not only in the terminal.. im a newbie so i prefer the graphic usage before only text;P
Old 11-14-2005, 04:51 PM   #2
Senior Member
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
in a terminal window
(not the root terminal window)

sudo passwd root
enter the (sudo) user password
then after the next message enter
root password
reenter root password
close terminal

go to the login setup/security and check
"enable root to use WDM"

then log out and try to log in as root using the new root password
Old 11-14-2005, 09:41 PM   #3
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
But don't do it.

X-windows is ok if you want it, but running it as root is a huge security error. I am of the opinion that X should never be on a server, as it is just a waste of resources that should be directed elsewhere, like actually doing what the server was designed for, which never should be showing you pretty pictures.

Also, running as fulltime root is inviting windows errors, like viruses and such. Part of the reason that linux viruses are virtually nonexistant is that most linux boxes aren't run as full time root. The saftey of that is I can't harm the key files of the computer, as I don't have the rights to do so. As full time root, anything I do can effect the computer.

X is a semi-bad idea on a server. Fulltime root is outright stupid (true on M$ systems as well), and it lowers the security of your computer to an unacceptable level.

Besides, what do you need root for? Other than modifying config files, you should have a server that runs like a top without any direct intervention on the part of a user.

Old 11-15-2005, 01:41 AM   #4
LQ Newbie
Registered: Nov 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Im beware of how it is with the security.. but i don't have any internet on the computer that im having linux on, right now im just trying to learn the system. But thanks for answers
Old 11-15-2005, 08:15 AM   #5
Registered: Dec 2004
Location: Sydney, AU
Distribution: CentOS 5.x, Backtrack
Posts: 72

Rep: Reputation: 16
I always install X on servers but only ever have the machine boot to init 3. I can then go up to init 5 if ever i need to.

As for learning the system... you're much better off learning the command line.
Old 11-15-2005, 08:32 AM   #6
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
does ubuntu have root? when i installed it i only had a sudo option.... i spose you could have added it.

Anyway you can login to a terminal as root then execute the graphical ap/config you want say gnome-control-centre.... that way you are still only root for that command, but have the GUI config to change things that you want.

If you can't be arsed with su <pass> each time

man sudo


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
How to log conversation between server in /var/log/messages? juris Linux - Software 1 11-23-2004 09:54 AM
Cant only log in as root after user log-in. ADJenkins Linux - General 2 11-17-2004 04:18 PM
Log Out root Then Log In As Other User xtremcoder Linux - General 4 10-04-2004 11:01 PM
How do I log in to root once I have logged out of X server? SILVERPENGUIN Mandriva 3 12-07-2003 05:27 PM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 12:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:52 PM.

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