> You could probably boot your system using a live cd or a floppy distro.

Just start the rescue mode while booting from your RH CD's.

> But, then you would have to edit your password and shadow file....also,
> you'll have to use something like perl to encrypt a new value for your
> password. Check out the crypt function.

Why should you? Just make the password field empty (probably in the shadow 
file, unless the OP turned it explicitly off). You can then get in without a 
password and set it using passwd.

> This is all ok as long as you
> are not using some type of a crypto file system...if so then someone
> else will have to give you pointers.  Remember the live systems will
> have their own /etc directory.  You will need to mount your disk to a
> path lets say /mnt/realdisk  so you will need to edit
> /mnt/realdisk/etc/passwd and /mnt/realdisk/etc/shadow maybe....remember
> the password must be created using crypt...

Better is to let the rescue disk mount the system. I gues it will do so under 
/mnt/sysimage.
Afterward cd /mnt/sysimage, chroot /mnt/sysimage and from there passwd.

> That should work...anyone got any easier way of explaining it, or does
> anyone see a problem with doing it that way?

-- 
Regards,

Andre


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to