How to Enable the ‘root’ user on Ubuntu

By default, the root user is locked in Ubuntu. To unlock it, simply run the command below, and provide the new password for the root user when prompted.

Now you should be able to log in as the root user using the su command:

If for some reason you want to lock the root user password after it has been unlocked you can use:

One thought on “How to Enable the ‘root’ user on Ubuntu”

  1. Pingback: Create a Docker Group Linux - Big Datums

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 class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">