1. The first step is to reboot server.
2. Upon Linux booting up to GRUB loader GUI, move the arrow key up/down to highlight and select the Linux kernel and press e to edit the GRUB commands before booting.
3. Next, move the arrow key up/down and select the Linux kernel and press e again
4. Give a single space and then type the word single at the end of edited line, as shown in this snapshot
5. Press the ENTER key and now you have a a similar GRUB screenshot as of follow.Keep the Linux kernel highlighted and press b to boot up with the single keyword, which will boot Linux into single user maintenance mode (You did nothing but to grant yourself the booting facility of a single user that is otherwise not visible while you enter the server as a root in a proper way)
6. Once the Linux boot up completely into single user maintenance mode, the Linux command prompt is ready to execute command. Type passwd to reset the forgotten root password - without prompting for old root password, just type a new root password and re-type to confirm it and you are done. You have successfully changed or reset the old password without having known the old one.
7. Type reboot or exit to reboot. On next boot up, you can login with the new root password!
Remember, it is for those who have GRUB bootloaders.
0 comments: