How to Change Root Password on Ubuntu

If you are tired of using ‘sudo‘ to execute command line activities, you can switch to root user (super user).

First of all, we assign a root password:

$ sudo passwd root

After assign password for root user, you can switch to root user using ‘su’ command and type in the password:

$ su

 

Leave a Reply

Your email address will not be published. Required fields are marked *

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