This guide is officially tested on FreeBSD 10.2, and FreeBSD 13.1 versions.

Heads Up: Be mindful that this method will only work if you have the physical access to the FreeBSD system. For remote systems and VPS, you may not see the boot menu. In such cases, you need the service provider’s help.

Boot Into Single-user Mode

Boot Into Single User Mode In FreeBSD
Enter full pathname of shell or RETURN for /bin/sh:
Enter Full Pathname Of Shell In FreeBSD
Enter Full Pathname Of Shell In FreeBSD
# mount -u /
# mount -a
Mount Root Filesystem In Read And Write Mode In FreeBSD
Mount Root Filesystem In Read And Write Mode In FreeBSD

Reset Root Password In FreeBSD

passwd

Enter the new password twice.

Reset Root Password In FreeBSD
Reset Root Password In FreeBSD
# exit
# sync;sync
# reboot
# passwd ostechnix

And the rest is same as described above