Home >Operation and Maintenance >Linux Operation and Maintenance >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:
#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
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
4. Please re-enter the new UNIX password, enter the root password again, and press the Enter key
5. Passwd appears: If the password is updated successfully, it means that the root password has been set successfully.
#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:~$
## Recommended 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!