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 djlaube. Bookmark the permalink.

About djlaube

I have over 16+ years of experience helping small to enterprise businesses nationwide design and then implement enterprise storage, backup and recovery, disaster recovery and system virtualization solutions including private cloud, public cloud and hybrid cloud infrastructures. I hold numerous storage and virtualization certifications. I have supported 18-25 sales reps at any one time as a presales engineer, involved in all stages of the sales cycle. I have consistently been a top producer in all of my roles. I have personally delivered over 300+ complex enterprise solution implementations from multiple vendors (including VMware, EMC, Dell, Symantec and HP). I am an expert in solution design and architecture and have designed over 250+ complex solutions for customers of all sizes (SMB to Fortune 100).

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 )

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