Posted: . At: 1:11 PM. This was 8 years ago. Post ID: 9238
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

How to login as root on Ubuntu 16.04.

To login as root on Ubuntu 16.04, open the terminal and type this command.

jason@jason-desktop:~$ sudo su -
[sudo] password for jason: 
root@jason-desktop:~#

This will give you a root prompt. Then enter this command to unlock the root account.

root@jason-desktop:~# passwd root
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully

This allows the user to set a password for the root user and unlock the account. A very useful tip to make full use of your machine.

Now it works.

jason@jason-desktop:~$ su
Password: 
root@jason-desktop:/home/jason#

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.