Login as root in Ubuntu Linux

Well Ubuntu is different from most other Linux distributions in the way that it does not have a root account that is enabled by default. There are times when it is handy to have a root account so I’ll show you how to set it up.

1. Open the terminal and type: sudo passwd root

2.  You’ll get a prompt to “Enter new UNIX password”, enter the password you want for the root user and confirm it.

Now you can log out and log in as root.

Advertisements

2 Responses to Login as root in Ubuntu Linux

  1. A.Y. Siu says:

    There are times when it is handy to have a root account

    I’ve been using Ubuntu for six years now and have never found a time it’s handy to create a root password. If you want a persistent root prompt, just use sudo -i

    • Adam says:

      Sometimes there are certain programs or driver installations that insist on being run as root user. This is rare but you would need a root account for this or a root account would be the far easiest way. Also some people (mainly those who come from distributions like Fedora) are more comfortable or prefer to have a root account. Cheers 😉

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: