You didn't say what bootloader you are using (most likely GRUB), but with LILO you can type 'linux single' at the boot prompt, and with GRUB you can press 'e' and add 'single' to the end of the line that starts with "kernel". Hit 'b' to keep booting. Once you're in you can reset your password using the 'passwd' command.
To recover lost password boot the server in single user mode.To do this you have the edit the bootloader configuration.
If you have grub bootloader ,at the splashimage screen which appears after rebooting press e(to edit).
Edit the line reading
kernel /boot/vmlinuz..... ro root=LABEL=/
to read as
kernel /boot/vmlinuz..... ro root=LABEL=/ linux single.
If you have lilo bootloader press CTRL+X at splashimage screen and type the command linux single at boot: prompt.
This will boot your server in single user mode.i.e directly
at the #prompt.Here you can issue the 'passwd' command to
change the password.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.