from time to time I forget the password for root
user in some of my Linux installations, and to reset the password I just follow these steps:
- Press F2 when the splash screen comes up
- A GRUB screen will display
- enter the letter
e
- Using the arrow keys, move the cursor to the line for kernel
- Enter the letter
e
again. - You will see a command line
- After the last word/character append a space and the word single (single mode)
- Hit Enter
- Make sure the cursor is on the kernel line
- enter the letter
b
(this will boot) - System will load into single mode, should see
- Enter command
$ passwd root
- Enter new password two times
- Enter exit (this will reboot)
- Test the new root password voila 🙂