How to create a superuser (root) on linux

super utilisateur(root) sur linux

The root or super user level is the most important and the one that allows you to manage the system. It gives you access to the protected elements of a UNIX system. Unlike Windows, Linux limits certain commands to the super user only.

Norton Secure VPN 2023 for up to 5 Devices
amazon-300x225 How to create a superuser (root) on linux19,99 $

1-Access to the root level

  • Open a Terminal

To start, we execute the command: Ctrl+Alt+T, to open a terminal.

cap1 How to create a superuser (root) on linux

The account used is presently cheap. It can be seen by the “$” symbol.

terminal How to create a superuser (root) on linux

To access the root account:

  • Type the command sudo passwd root
commende_1-1 How to create a superuser (root) on linux
  • First enter your system password, your Unix account password and press enter.
  • You will then be prompted to enter your new Unix password. Enter it once to set it, then press enter. And a second time for confirmation.

When you enter your password, nothing appears on the screen. In case of error, you have three tries maximum.

There your password has been updated.

pass How to create a superuser (root) on linux

To learn more about the basic Linux commands, go to the following address.

2-Becoming super user

  • Type sudo su. Then press enter.
super_utilisateur How to create a superuser (root) on linux

You have become a super user now. The symbol at the beginning of the line changes to #.

super_utilisateur_2 How to create a superuser (root) on linux

You can now run any utility that requires root level access privileges. The system has memorized your superuser status so that you don’t need to log in again for each new command.

See also our articles on :

Share this content:

Leave a Reply

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

  • Rating

16 + 8 =

Vous avez certainement manqué...