How to Reset the Linux Root Password
- 1). Boot or reboot your computer.
- 2). Click on the Linux kernel and press "e" as fast as you can. This screen doesn't stay up for long.
- 3). Select the line that begins with the word "kernel". This is usually the second line. Press "e". This should allow you to edit and append the kernel title or name.
- 4). Add a space after the kernel name. Type in "single". Press "enter". In some cases typing the letter "s" will also take you to single-user mode.
- 5). Press "b" to boot the system into single-user mode.
- 6). Type "passwd" at the prompt to reset the root password. Add a new password.
- 7). Type "reboot" to reboot the system, and use your new root password.
- 1). Boot or reboot the system.
- 2). Type in "linux single" when the LILO prompt appears. Press "Enter". This should log you in under single-user mode.
- 3). Type "passwd" when the prompt appears to reset your password. Add a new password.
- 4). Type "reboot" to reboot your system and use your new root password.
Resetting from GRUB
Resetting from LILO
Source...