How To Enable Root (Super) User in Ubuntu

Posted by jun auza On 10/29/2009
If you are new to Ubuntu and have been using other distros like Fedora or openSUSE before, then you may find it frustrating that when you issue the "su" command it will result to authentication failure.


By default, access to root account password is disabled in Ubuntu for added security measures. But if you really want to enable root (super) user in Ubuntu just like you can on other Linux distributions, you can do it in two ways.

One way it to set a root user password by:

$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

After this, you will now be able to successfully use the "su" command:

$ su -
Password:
#


You can always disable the root user password through this command:

$ sudo passwd -l root


The second and probably the simplest method of enabling root user in Ubuntu is by executing either of the following:

$ sudo -s

or

$ sudo su -


That's about it. I hope some of you out there will find this simple tip on how to enable the root (super) user in Ubuntu useful.

Bookmark and Share

Related Posts:



Archive


"Action is the real measure of intelligence" ~Napoleon Hill

Twitter

Tumblr

Google +