Min menu


Reset admin/root password in FreeBSD | Recover lost root password | FreeBSD reset | recover root password | How to Reset a Forgotten Root Password

With FreeBSD 5.4 and above the booting procedure is slightly changed. Under ilder version of FreeBSD use boot -s option at Ok prompt.
However, with version FreeBSD 5.4+ you don't have to type any command. Here is the procedure to boot FreeBSD into a single user mode to reset root password.
In this tip I will explain how to boot FreeBSD into a single user mode to reset root password.

 Reset FreeBSD root user password

Step # 1: Start FreeBSD server/workstation.
Step # 2: Press Enter key at boot loader.
Step # 3: At Welcome to FreeBSD! boot menu press spacebar key to pause default booting
Type number 4 key (type 4 number) to boot into single user mode.

 Step # 4: Select the default shell (/bin/sh):
Next you will see following prompt from system:
When prompted Enter full pathname of shell or RETURN for /bin/sh:
Press Enter key to boot into single user mode. Next, you will be immediately dropped into a single user mode without a root password.

Step # 5: You need to remount / (root) file system in read and write mode with mount command, type following two commands:

# mount -u /
# mount -a

Step # 6: Setup a new password with passwd command:
# passwd

Step # 7: Enter the new password and confirm it

New password:
Retype New password:

 Step # 8: Type reboot to reboot the machine (or press the shutdown button to reboot)
# reboot

Step # 9: When the system start enjoy with the new password.

https://www.it-weblog.com IT weblog and IT Blog contain articles for computer, network,security ,adsense,Hosting, google,freeware download from IT blog.