Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passwd recovery

Status
Not open for further replies.

vedo

MIS
Mar 20, 2002
30
0
0
US
Lost root and user password anyone knows how to reset the password in redhat 9.0

 
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.

ChrisP
 
hi vedo,

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.



 
Thanks all that did it.
Not very secure if anyone can change the root paasword this easy? any way to lock this down?

Once again thank you.
Tony Banks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top