It is a headache to forget the root password of Centos, but if you are already in the system, it will be easy to solve, enter the command # passwdroot to change the new root password! However, if you cannot access the system, you need to change the root password in single-user mode! My testing system is Centos6.4x86 _ 64. the following shows some of my successful testing processes: 1. First, start Centos
It is a headache to forget the root password of Centos, but if you are already in the system, it will be easy to solve, enter the command # passwd root to change the new root password! However, if you cannot access the system, you need to change the root password in single-user mode!
My testing system is Centos6.4x86 _ 64
The following describes some of my successful testing processes:
1. press Esc on the Centos screen when you start the instance, and then enter the following interface:
2. press the "e" key on the keyboard to display the following interface:
3. move the cursor to the second item with the arrow key on the keyboard, and then press the "e" key. the following interface is displayed:
Enter a space key, enter the number 1, and press Enter. or enter the space key, enter single, and press enter. The following interface is displayed:
4. Yes. You did not see the error. it is indeed the interface. press the "B" key on the keyboard to restart the system and then enter the single-user mode, after entering the system, enter # passwd root, and you can change the root password again. then, restart the system and you will be OK:
Good luck !!!