Ubuntu: how to set the root password

person Jason Huangfolder_openUbuntulocal_offer, , , access_time February 20, 2016

From time to time you want to use root password, however in ubuntu you did not set one up yet during the installation.

To set the root password, open a terminal, in the command line:

sudo su

using sudo su prompts you for your default user password (which you setup during the installation), type in your password. Now you have root access.

Then you can use command:


then follow the prompt to set a root password.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>