By default, the Root user password is locked in Ubuntu. Meaning you cannot use â€˜suâ€™ command to switch from regular user to root user and also you will not be able to login directly as â€˜rootâ€™ user. However, you can use â€˜rootâ€™ privileges by using â€˜sudoâ€™. SuperUserDo ( sudo ) needs your account password not â€˜rootâ€™ password and alternatively you can start “Root Shell” with ‘sudo -i’ without unlock ‘root’ user to avoid repeatedly typing ‘sudo’ and password.
Warning: Root user is a super user on your system which â€œ can do anything â€œ so, Enabling â€˜rootâ€™ is not recommended.
Steps to Enable â€˜rootâ€™ user in Ubuntu 12.04.
Set your â€˜rootâ€™ password.
If you wish to disable your ‘root’ account back, use the following command.
sudo passwd -dl root
Watch Video :