July 7th, 2006, 12:46 PM
You can boot it in single user mode and change the root password to anything you like. Here's how to do it:
1. For older freebsd systems, when booting up, it should give you a message to press Enter to boot /kernel or hit any key within 5 seconds (or words to that effect). Instead of typing Enter, type any other key and then type boot -s and then press enter. This will boot the kernel up in single user mode.
In newer versions of freebsd, it should give you a "Welcome to FreeBSD" message" followed by a number of boot options. Hit Space here and then select option 4 (boot in single user mode) and hit enter.
2. You will then see a prompt like this:
Enter full pathname of shell or RETURN for /bin/sh:
Hit enter here and you'll be presented with a shell.
3. At the prompt, type mount -a to mount everything.
4. Type passwd and change the root password to something you choose. If you want to change a user's password as well, you can type passwd name_of_user to change any user's password.
5. Type exit to reboot in multi-user mode.
Now you should be able to login as root with the password you chose.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne