Never locked out again from my FreeBSD virtual machine for having forget the root password.
- Boot in single user mode
- Remount the
/file system in read and write mode with
mount -u /and then
- Setup the new password by
- Boot in multi-user mode with
I needed to save this tip somewhere because I know I will forget root password again.