How Do I Change to Root User in Ubuntu?
Contents

To switch to the root user on Ubuntu-based distributions, enter sudo su in the command terminal. If you set a root password when you installed the distribution, enter su. To switch to another user and adopt their environment, enter su – followed by the name of the user (for example, su – ted).

How do I change to root user in Linux?

Change user to root account on Linux

To change user to root account, simply run “su” or “su –” without any arguments.

How do I change my normal user to root?

To get root access, you can use one of a variety of methods:

  1. Run sudo <command> and type in your login password, if prompted, to run only that instance of the command as root. …
  2. Run sudo -i . …
  3. Use the su (substitute user) command to get a root shell. …
  4. Run sudo -s .
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest