Enabling the Root Password in Ubuntu 11.10 (instead of using sudo)

Thanks to the following site, I’m able to use the “root” login on Ubuntu 11.10.
http://www.debuntu.org/2006/04/24/34-ubuntu-default-root-password-or-the-sudo-way 

Copied below for local reference:

Root is created without predefined password, it does not have a password, but it does not have an empty password either, you just can’t login!!!

I actually like to be logged as root when I’ve got many this to do. I find sudo usefull when only one or two actio are to be done, but when doing administration task, typing sudo all the time just drive me cray :).

One way to gain root prompt is to launch a shell as root. Therefore, using sudo you can type:

:~$ sudo sh
Password:
sh-3.1#

And there you are, you have a root shell.

If you want to be able to login as root, you need to define a password for root:

:~$ sudo passwd
Password:
Enter new UNIX password:
Retype new UNIX password:

Now you can login as root with su.

 

This entry was posted in Ubuntu and tagged by virtualdennis. Bookmark the permalink.

About virtualdennis

I have over 18 years helping small to large enterprise businesses nationwide with their enterprise storage, backup and recovery, disaster recovery and system virtualization solutions. He holds numerous storage and virtualization certifications and has personally delivered over 300 complex enterprise solution implementations. He has been privileged to speak at various national events on the topics of datacenter virtualization, end-user virtualization, hyper-converged infrastructure and disaster recovery.

2 thoughts on “Enabling the Root Password in Ubuntu 11.10 (instead of using sudo)

  1. Pingback: Running a Root Shell in Ubuntu 13.04 | Lewan IT Solutions Technical Blog

  2. Hey there I am so excited I found your website, I really found you by accident, while
    I was looking on Bing for something else, Regardless I am here now and would just like to say many thanks for
    a tremendous post and a all round enjoyable blog (I also love the
    theme/design), I don’t have time to browse it all at the minute
    but I have bookmarked it and also added your RSS feeds, so when I have time I
    will be back to read much more, Please do keep up the
    great jo.

Leave a Reply

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

WordPress.com Logo

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

Google photo

You are commenting using your Google account. Log Out /  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