Setting up root password for Ubuntu

Ubuntuubuntu has no password for root user as default. If you want to reset root password, you need to use sudo passwd command in shell. To Open shell, click Applications » Accessories » Terminal. In shell, type sudo passwd. It will ask you password. Type your login password.

[email protected]:~$ sudo passwd
Password:

And then it will ask you to reset password for root. Type it twice

Enter new UNIX password:
Retype new UNIX password:

After reset root password. It will show this message in Shell.

passwd: password updated successfully

Now you can login as root by typing su command

[email protected]:~$ su
Password:
[email protected]:/home/myochauhtun#

regards : How to change root password in Ubuntu

One Response