I have a FreeBSD box which I forgot the root password to. I do have physical access, so I can reboot the box if I need to.
How do I reset my password?
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Visit Stack Exchange
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
There are a few Steps needed:
Start the server
Press Enter key at boot loader to get to the boot menu
Press Space to pause the default boot loading
Boot into single user mode (press 4)
Define Shell : enter the full pathname for the shell (or press enter for default path /bin/sh)
remount root file system (/) rw (read/write)
mount -u /
Create a new Password with
boot multi user OR reboot
/etc/ttys. By default is it marked secure.