Enabling root account in Ubuntu
Root account is super user account in Linux & it has access to anything and everything on filesystem. You can create new partitions, destroy old ones or install/uninstall softwares using root, But in Ubuntu, we have to use local account instead of root account & root account is disabled by default. Though local user account can accomplish root-level tasks with ease but if you are among those who prefer to have complete control & likes using root account, then this tutorial is for you. In this tutorial, we are going to learn to enable root account in Ubuntu.
Step 1 – Set a password for root account
Before we enable the root account, we will have to set a password for the account. To setup root password, open the terminal & execute the following command,
$ sudo -i passwd root
You will now be asked to enter the password; once you have entered the desired password, you will again be asked to enter the password to confirm it. Once you have entered the desired password the second time, your root password will be set.
Step 2- Enable login screen
Our root now has a password but doesnot have a login screen. To enable login screen, we need to make changes to /etc/lightdm/lightdm.conf file. Its available on most systems by default but if that’s not the case, then you can create one with editor of your choice,
$ vi /etc/lightdm/lightdm.conf
& enter the following parameters,
Now save the file & exit. We now only have to restart out Ubuntu machine to implement the changes & upon reboot , we will be able to login as root.
If you are facing any issues or have any queries, please feel free to contact us using the comment box below. ADIOS !!!