Home > Article > Operation and Maintenance > How to enable root permissions in Linux system
When the Linux system needs to cd to the root directory in the console, if the root password has not been set, it will not be able to enter and it will prompt that the permissions are insufficient. The following is a detailed graphic introduction on how to enable root permissions.
Open the Linux system console, when prompted for insufficient permissions, enter: sudo passwd root, and press Enter.
As shown below. (Recommended learning: linux operation and maintenance )
## prompts you to enter a password, which is required at this time The password is the Linux system login password. There is no prompt when entering it. Just press Enter after entering it.
Please enter a new UNIX password. Now enter the root password you want to set. The screen will not display the input number. , press Enter after typing.
Please re-enter the new UNIX password, enter the root password again, and press Enter.
If passwd: Password update is successful, it means that the root password is set successfully.
Now we verify whether the root password has been set successfully, enter: su, press Enter, when the account number appears, add the current When the 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), and the ordinary account status is XX:~$.
The above is the detailed content of How to enable root permissions in Linux system. For more information, please follow other related articles on the PHP Chinese website!