Recovering root password from a drive by mounting the cdrom

Wojciech Puchar wojtek at wojtek.tensor.gdynia.pl
Sun Jul 6 21:19:58 UTC 2008


> I need your help!
> I have booted up from a freebsd install cd 1.  I have connected my freebsd drive in the system.  Now I don't know how to mount the drive to edit the /etc/shadow file.
> I am at the fixit prompt on the cd.

IMHO

mount <yourrootpartition> /mnt
mount <your_usr_partition_if_separate> /mnt/usr

cd /mnt
chroot . usr/bin/passwd

and change the password


More information about the freebsd-questions mailing list