How to enable root in Ubuntu 16.04

How to enable root in Ubuntu 16.04


Have you ever tried to run commands on Ubuntu? And faced the error that everyone has faced, “Permission denied”. If you have, then you might’ve searched all over the internet what was wrong with the command. Then you found that there’s nothing wrong, you just need super user permission. Which is also known as root.

Enabling root account is useful for administering a Linux system. Ubuntu is one of the most popular Linux distro out there.

With root privileges, you can delete any file you want on your Ubuntu operating system, this is why it’s also a very dangerous privilege to have.

Still root is very useful. When you install software on your Ubuntu Linux operating system, you need root access. If you want to remove software, update software from your Ubuntu system root is must to have.

With root enabled, you can upgrade your Ubuntu versions to the latest one available.

This tutorial is about how to enable root account to give you the superhuman power you’ve been waiting for over your Ubuntu system.

To follow this tutorial, you need,

  • A computer that have Ubuntu installed. Or a Virtual Machine.
  • Linux terminal.
  • A keyboard (Who doesn’t need a keyboard to type commands!!!).

I assume you have the requirements. Let’s get started.

Step 1: Right click on the desktop and click on “Open Terminal” to open the terminal.


Step 2: On the terminal, type the following command and press Enter.

                                       sudo passwd

             You will be prompted for the password. Type in the user password and press Enter.


Step 3: Then you will be prompted for the new root password. Type in the root password and press Enter.


Step 4: Retype the password for the root and press Enter.


Step 5: You have successfully set the root password. Now you can login as root.