how to login gnome as root

Travis Newman panickedthumb at gmail.com
Tue Dec 7 04:09:46 UTC 2004


Jozsef Mak wrote:

>>
>> Hi all,
>>
>> I moving step by step, I have succeeded to create the root account(old 
>> habbits). 

Step by step? I thought there was only one step: sudo passwd root

>> However for somereason I can't login to Gnome as root. 

We'll get to that in a minute, but first, the proper way to do things 
without possibly screwing things up...

>> I have tried root,su,sudo,root at ubuntu,superuser,super user... almost 
>> everything, but I can't login as root. And because of that system 
>> doesnt allows me to make changes on system, even doesnt allows me to 
>> copy files on Gnome DE.

use "gksudo nautilus" from the run dialog, or from a terminal "sudo 
nautilus" to open an instance of nautilus with root privileges. As far 
as other system changes, you do know you still use your own password for 
everything in the System Config section of the menu, right? That's where 
all the major system changes go. Anything else you can sudo, pretty much.

>> Would anyone please tell me how to log in as root to gnome?
>>
>> Thanks,
>>
But you should NEVER login to a graphical interface as root. Use the 
root console, or sudo on the command line, or gksudo when running 
x-apps. But never ever login to X as root. You can seriously break 
things. A few Gnome versions ago, there was actually a message when you 
logged in saying "Using Gnome as root is stupid, and you'll most likely 
break something" or something to that effect.

If you still want to do it, and you are aware of the risks and want to 
do it anyway, here's the way to do it:

You have to edit /etc/gdm/gdm.conf to allow that. There's an entry 
called "AllowRootLogin" or something like that.






More information about the ubuntu-users mailing list