Posted: . At: 3:19 PM. This was 8 years ago. Post ID: 8632
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 to the root user in Ubuntu.


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.


Leave a Comment

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