The root account on a Linux machine is very powerful and allows access to the basic system functions. But on an Ubuntu system this account is locked. To unlock this account, type this command.
jason@ubuntu:~$ sudo su - [sudo] password for jason: root@ubuntu:~# |
Then enter this command to unlock the root account and set a password.
root@ubuntu:~# passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully |
Now the root account is unlocked and you may login to the freshly enabled superuser account.
jason@ubuntu:~$ su Password: root@ubuntu:/home/jason# |
That is how easy it is to login to the root account on an Ubuntu system.