Boot from cdrom and/or floppy install disk ( the floppy image is on the CD ).
During the install press F8, a list of options is shown.
Select Use the <TAB> and <Arrow> keys to highlight the shell command, press <Enter>.
If you break out of the install BEFORE the CDROM initialization, then certain tools will not be accessible, such as mounting hard disks, fsck, file listing etc.
Once you get past identifying the installation media, and are at the point where you are asked for the keyboard type, press the <F8> key. Go to the shell escape.
To access the root filesystem, you will have to create the device node;
# mknod /dev/root b 1 42
To run the filesystem check on the root filesystem;
# fsck –o full /dev/root
To mount the root filesystem;
# mount /dev/root /mnt
Now edit the /mnt/etc/shadow file and remove the gobblegook between the : : parenthesis.
Do the same for the /mnt/etc/passwd file, but removing the "x" instead. This will basically remove the root password.
Hopefully allowing logging into the single user mode ( press return, instead of ctrl-d, during bootup.)
from here mount the relevant filesystem ( or them all ) and you have access to any file you want.
NOTE: Make sure you backup these files, just in case i have done a typo.
Hope this helps