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 Windows 11 Update Error

The Windows 11 update error can occur for several reasons, such as corrupted files, connectivity issues, or conflicts with third-party…

il y'a 2 months

How to resolve the error “You don’t currently have permission to access this folder” in Windows 10 and 11

The "You don’t currently have permission to access this folder" error often appears when you try to access a folder…

il y'a 2 months

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 months

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 4 months

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 4 months

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 4 months