Logging as “root” in Ubuntu

Have you ever wanted to Login as “root” in Ubuntu and have gotten the message that the “root” is not allowed to login? Actually, that is because loggin as “root” in Ubuntu is neither recommended nor necessary. Doing so can leave your computer more intrusion-prone and, besides that, it could be that you can mess up some files or make another accidental mistake. Most of times, any administrative command can be issued just by using “sudo” in front of the command. However, in very exceptional cases it is really more convenient or even necessary to login as “root”. Then what? It is actually possible to login as root in Ubuntu. But, again, I do not recommend you to do so. As I said, it is almost always unnecessary and dangerous.

Well! if you are still here and really want to know how to login as “root” in Ubuntu (at your own risk), you need to know that two steps are necessary to enable GUI “root” login. First, a password has to be assigned to the “root” account which can be done by issuing the following command in a terminal:

sudo passwd root

Then, if one really wants to enable the GUI “root” login (not recommended, think again!), following command can be used:

gksu gdmsetup

A GUI opens. In the security tab, there is an option which can be used to allow local system administrator login. The option needs to be checked in order to allow the “root” login. I highly recommend you not to do so and if you are keen to do so, do not let it to remain that way and bring the system to its default state AS SOON AS POSSIBLE.

Advertisement

14 Responses

  1. very interesting. i’m adding in RSS Reader

  2. very interesting.
    i’m adding in RSS Reader

  3. what’s the problem in login as a root in ubuntu

  4. what´s whit the fear? are you afraid that linux looks like windows i´ll be happy to find out a linux system distribution whitout passwords, came on ! you have to enter a pasword even if you go to the batroom! I cant change even the time! i dont know why has it in the user interface! if you cant edit or change anything.
    linux is safe, sure, of course “ask to your administrator” it say´s… I, I´m the fkn administrator!!!!!!!!!!
    I´m tired reading abut gnome or kde,and how fancy are they. Give a real help! how to install drivers, packages, etc. I´m trying last kubuntu distro, and say “you have to create an index before using help” and you cant use it i guess cause you add to login as root???????what a f…..?????? came on! it´s the help!!!!!!!!!!!!!!!
    Really thanks a lot for your help!
    From argentina
    Capitanqueso
    PD linux´s “help” sucks

  5. I believe if you log in in console mode (run level 3) you can log in as root.

    Then type startx and you will be in as root.

    I hope it works for you.

    • What?????
      what are you taking about…..
      forget it….. life’s too short to spend them trying to figure out how to connect my fu……. TV to my PC. this Linux is crap!!!!
      Now i finally understand why microsoft charges so much money for their OS, while Linux is free – no one in his right mind will pay for this crap!!! you have to quit your day job just to figure how to add a language – like i said life’s too short.
      Good luck to all of you…….. (just don’t count on it…..)

  6. It looks pretty useful for this problem, I hope.

  7. The above information is so much useful,thanks to dude who share this with us. Many time when I do something wrong in installing new packages , synaptic package manager , software source , update manager & add/remove are blocked and show the message to run dpkg command in command line mode. At that after all process done it show me the file names which are need to delete. But I cannot do without a root privileges . But I now can be do it. Thanks.

  8. If you want to do that from command line follow this Link :-

    http://barot.wordpress.com/2009/01/16/login-as-a-root-from-gui-for-ubuntu-810/

  9. If anyone wants to Login as a root from GUI on Fedora 10 then Just Follow this Link:-

    http://barot.wordpress.com/2009/01/01/trick-to-login-as-a-root-from-gui-fedora10/

  10. If you want to do that from command line follow this Link :-

    http://blog.ask4itsolutions.com/2009/01/16/login-as-a-root-from-gui-for-ubuntu-810/

  11. If anyone wants to Login as a root from GUI on Fedora 10 then Just Follow this Link:-

    http://blog.ask4itsolutions.com/2009/01/01/trick-to-login-as-a-root-from-gui-fedora10/

  12. If anyone wants to Login as a root from GUI on Fedora 11 then Just Follow this Link:-

    http://blog.ask4itsolutions.com/2009/06/19/login-as-a-root-from-gui-fedora-11/

  13. Well I’m gonna need to do some more research but this was a really good place to start.

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.