Red Hat 9

Some time ago I installed Red Hat 9 on a spare machine that I built.

My problem is I have passworded it, now I can't remember it, is there anyway to bypass so that I can enter a new one, or do I have to do a complete re-install again
 

leike

New member
jomotheman said:
Some time ago I installed Red Hat 9 on a spare machine that I built.

My problem is I have passworded it, now I can't remember it, is there anyway to bypass so that I can enter a new one, or do I have to do a complete re-install again
NO,
Just boot from Your installation cd or dvd and startup in resque mode.
After booting get your root filesystem (is displayed on the screen chroot)
and vi your etc/passwd or etc/shadow file and blankout the password field for root.
afterwards reboot and logon as root with no password.
execute the passwd command to set your root password again..

Success
 

N.B.

1
Staff member
hehe, that´s a way ! :)
The other one would be depending on the boot loader you use.
If it is lilo, just press down CTRL while booting up, you will end in a prompt:
lilo:
type in: linux init=/bin/bash
Press enter, wait a bit, you will get in the console,
edit the /etc/shadow file as leike said above and then run the command sync, now press ALT+STRG+DEL and normally boot up the system, login with root and no password.
If you use grub I am not sure how you could get into this prompt, but google can surely find an answer for that :)
 
Top