How to enable root password on Ubuntu

March 15, 2012 in Tips

How to enable root password on Ubuntu

During the installation of Ubuntu you can create a user and you can set a password for that user. Ubuntu also create a root user who can have full access to Ubuntu system. For example if you try to install a new software on Ubuntu from Graphic User Interface or from shell the Ubuntu will ask you for your password to do that. If you login with "root" user the Ubuntu will never ask you for passwords every time you do a change to the system.

But you cant login with "root" user until you set up a password for this user. To do so open a terminal and type

sudo passwd root

then type a password for "root" user. when done you can switch to "root" user by typing

su root

and by giving the password for "root" user

Now you have full access to your system.