Linux operating systems like Ubuntu do not provide root access to its users. This is done due to security reasons, as a user logged in with root privileges can end up messing up the system by doing as little as entering a wrong command . As an alternative, users use the sudo commands for performing root tasks.
In this post I will provide you with a small tip to allow logging into the Ubuntu GUI, as root user.
Disclaimer: Logging in as root user can damage your system. Use this procedure at your own risk.
To get started, open a Terminal window and enter the following command:
sudo passwd root
You will get a prompt to enter your password, followed by the UNIX password. For the New UNIX password, enter a password for the root account.
After that, log out of your current session and login with the username “root” and the password which you assigned for the root user (as explained above).
Make sure you do not perform any action which may cause issues with your system. The root account is no place to experiment with. Make sure you know what you are doing when logged as the root user and do not try anything that you are not sure about.