Home >Operation and Maintenance >Linux Operation and Maintenance >How to enable root permissions in linux

How to enable root permissions in linux

王林
王林Original
2019-11-05 13:36:1613153browse

How to enable root permissions in linux

1. Open the Linux system console. When prompted with insufficient permissions, enter: sudo passwd root and press Enter. As shown below:

How to enable root permissions in linux

#2. When prompted, you need to enter a password. The password required at this time is the Linux system login password. There is no prompt when entering it. Just press Enter after entering it

How to enable root permissions in linux

3. Please enter the new UNIX password. Now you need to enter the root password you want to set. The screen will not display the input number. Press the Enter key after entering

How to enable root permissions in linux

4. Please re-enter the new UNIX password, enter the root password again, and press the Enter key

How to enable root permissions in linux

5. Passwd appears: If the password is updated successfully, it means that the root password has been set successfully.

How to enable root permissions in linux

#6. Now let’s verify whether the root password has been set successfully. Enter: su and press Enter. When the account number appears, add When the current path is #, it means that it has entered the root control state (you can observe that the account names in the picture below and the picture above are different). The normal account status is XX:~$

How to enable root permissions in linux

## Recommended tutorial:

linux tutorial

The above is the detailed content of How to enable root permissions in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn