How to create a superuser (root) on 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
19,99 $

1-Access to the root level

  • Open a Terminal

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

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

To access the root account:

  • Type the command sudo passwd root
  • 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.

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

2-Becoming super user

  • Type sudo su. Then press enter.

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

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 :

Partager

Post Récent

How to Fix the Flutter Error ‘This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered’

When developing Flutter applications, it's common to encounter errors related to SDK version compatibility. One of these common errors is…

il y'a 3 weeks

Windows cannot be installed on this disk: the hardware of this computer might not support booting from this disk

During the installation of Windows, you may encounter an error indicating that the selected disk is not compatible with the…

il y'a 1 month

Windows could not start the Windows Update service on the local computer

The error "Windows could not start the Windows Update service on the local computer" occurs when the operating system fails…

il y'a 1 month

The Missing Windows Update Service on Windows 10 or 11

The Windows Update Service is essential for keeping your system up to date with the latest security and performance improvements.…

il y'a 1 month

Resolve the “Abandoned processing” error in YouTube videos

Importing a YouTube video can sometimes be a source of frustration, especially when the operation is interrupted by an error…

il y'a 3 months

How to resolve the error “VmWare Workstation can be run after disabling Device / credential Guard”?

When starting up your virtual machine, you may come across the hypervisor error asking you to disable system identification security.…

il y'a 3 months