FreeBSD won't let you go away with the simple init trick.
The solution is to mount the root partition from an other
OS (like a rescue CD) and change the password on the disk.
* Boot a live CD or installation CD into a rescue mode which
will give you a shell.
* Find the root partition with fdisk e.g. fdisk /dev/da0
* Mount it and use chroot:
# mount -o rw /dev/ad4s3a /mnt
# chroot /mnt # chroot into /mnt
# passwd
# reboot
Alternatively on FreeBSD, boot in single user mode, remount
/ rw and use passwd.
# mount -u /; mount -a # will mount / rw
# passwd
# reboot
biOos
No comments:
Post a Comment