We all forget our passwords. It happens. Here's how to deal with it when it does.
CentOS 6Reboot the server and spam any key until you reach the grub menu.
At the grub menu press e, navigate to the kernel /vmlinuz option and press e again.
Then append "single" or "1" to the end of the kernel line.
Press F10 to boot and you should reach a prompt.
Change the root password.
passwdReboot the server and log in using your new password
- Updated