Centos system login root forgot password solution:
(1) Start the systemBefore entering the Linux SystemButtonsESCEnter the following page: (Note: centos is installed onVirtual MachineIn this exampleClick inPress ESC or you will still enter the Linux system ).
(2) SelectPress the e key, The following interface is displayed:
(3) Select the second item,Press the e key again., The following interface is displayed:
(4) On this basis,Enter a space and a number 1:
(5) Press enter to display the following interface:
(6) position the cursor in the second item. Press the keyboard key B and the system needs to start automatically. Wait until the following page appears:
(7) Now you can reset the root password: 123456 and enter the command:Passwd RootEnter
(8)Enter 123456As the initial password:
(9) Prompt password simple ignore: Enter 123456 again to displaySuccessfulInterface:
(10) Update successful. Test (restart): shutdown-R now
Enter the root login password you just set to enter the centos system.
At this point, the root password has been reset.
How can I forget the centos root login password?