Hi,
I have been asked to provide details. Ok, here goes:
a) try booting into single user mode. On my machine, it seems to still
ask for the root password, so that solution, proposed by others, does
not work for me. However, since it works for them, you might get
lucky.
b) As an ordinary user, run dh, look for where root is mounted. In my
case, it is /dev/sdb2
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb2 16126420 688952 14618156 5% /
c) Boot into a live CD (Knoppix, morphix, Ubuntu, whatever)
d) Get a root shell (depends on your live cd; (knoppix has a menu on the
bottom left that allows you to create a terminal window logged in as
root)
e) Check to see if your live cd has helpfully mounted your root
partition for you, read-only
# mount
/dev/sdb2 on / type ext3 (ro,noatime,errors=remount-ro)
f) Mount your old root partition under /mnt. If it is already mounted
for you, mount it read-write.
mount /dev/sdb2 /mnt
or
mount -o remount,rw /mnt/sdb2 (or wherever knoppix mounted things
read only)
g) Go edit /mnt/etc/shadow
manoj
--
The best diplomat I know is a fully activated phaser bank. Scotty
Manoj Srivastava <srivasta@xxxxxxx> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C