Get the App
SLTechnology News&Howtos  ›  Servers  › 

The solution of CentOS7 forgetting root user password

Shulou Source: shulou.com Published: 2022-06-03 04:09:11 10月01日 Update

1. Question:

Forget the root password, cannot log in to root, and cannot use the administrative operation of root permissions.

2. Solutions:

Step 1: enter first aid mode

Restart the system, as soon as the boot loading interface appears, quickly press the esc key (be sure to have bad eyes and quick hands), and enter the first aid mode.

Step 2: enter the first aid command mode

Step 3: load the mirror system, enter the bash environment, and use the passwd command to change the password

Step 4: enter exit to exit

Step 5: restart the system with reboot and enter a new password to log in to the system.

Tags: System mode first aid password command login input eye disease quick hand method permission environment interface eye disease mirror problem new secret management method user Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker MySQL Apple MariaDB Xiaomi