Debian Admin - Your way to Debian World

September 28, 2006

Enable and Disable Ubuntu Root Password

by @ 10:07 am. Filed under General, Security

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Ubuntu is one of the few Linux distributions out there that will not enable the root account.If you want to do something with root permission on the console you have to type sudo before the command.


sudo” means superuser do. “sudo” will prompt for “Password:”. Please specify user password

As you have noticed during the Ubuntu installation there was no question about the root password, as you might have been used to see during other Linux distribution installation process.Because of this your root accout is inactive.

If you want to enable root account (which is not recommended) enter the following command.

$sudo passwd root

This will prompt for a new root password and once you confirm it, you can start using the root account to login.

If you want to disable root account in ubuntu you need to lock the root account by using the following command

$sudo passwd -l root

If you want to work on a root console you’d better use the following command

$sudo -i

Tags: , , ,

You may also be interested in...

14 Responses to “Enable and Disable Ubuntu Root Password”

  1. Mohtek Says:

    If you want to get kind of dangerous, you can use
    sudo bash

    This of course allows you to work in the current shell as root.

  2. samuel Says:

    am i the only one that knows that the root account is there, you just have to (#sudo passwd) to give it a password

    anyway id recommend you use sudo unless you are doing heavy admin tasks

  3. ubunt00 Says:

    I don’t mean to start a flame war, but am I the only one who sees this as r00table as h3ll?

  4. slurp812 Says:

    A trick I discovered. I tried su, no dice and ubuntu likes to sudo everything, so I did “sudo du” supplied MY password, and bam, root prompt # w00t!

  5. droetker Says:

    Anyone heard of “sudo -s”? i use that when working longer as admin, just to save the time typing sudo every time.
    No “sudo bash”, no passwd.

    root is safer if it has NO password. BUT make sure, ya know, don’t use “123″ as your user’s password ;-) that would be the same as if root had that…

  6. Larry Says:

    I followed the instructions as printed above, but get a “The system administrator is not allowed to login from this screen” error when booting/login.

    Do I misunderstand this feature?

  7. exasperated Says:

    After a fresh install I want to run apt-get. Have to do it as root. Asks me for root password. No root password as above. So type ‘$sudo passwd root’ Get asked for password. Entering nothing not acceptable. So need password to set password.

    Jesus wept.

  8. Vadim Plessky Says:

    vadim@ubuntu:~$ sudo su
    Password: [enter your user password here]
    root@ubuntu:/home/vadim# passwd root
    Enter new UNIX password:
    Retype new UNIX password:
    ————————————-

    Hope this helps!

  9. SaiHayashi Says:

    Re: exasperated,
    when ur asked for password using sudo, u enter your own user password on whichever user ur logged in with, not the root password.

  10. Schmee Says:

    done everything thats above, got a root password going in the terminal but… going into x-windows, try do anything that requires an administrator password or anything, the root password that i specified in the terminal (and successfully used root there as well) doesnt work.

    any ideas?

  11. j3sus Says:

    every time i write sudo i get ask for a password and then i cant write anyting ,cant only do enter witsh tells me sorry, try again can anyone help me

  12. Thomas Says:

    I’ve wasted more time trying to figure out how to gain admin access to MY OWN DAMN SYSTEM… You can say whatever you want about M$, but at least with XP I have control of my own system. This is just ridiculous. Can’t install anything because I don’t have access to.

  13. thierry Says:

    Once you’ve done the ’sudo passwd root’ stuff to set a password for superuser open the menu System / Administration / Login Window, go to the Security tab and check the box “Allow local system administrator login”.
    And off you go.
    Cheers

  14. vari Says:

    Thanks thierry, it helped me get around the problem, thanks

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

WidgetBucks - Trend Watch - WidgetBucks.com

Related Links:


WidgetBucks - Trend Watch - WidgetBucks.com

Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.