With FreeBSD version 5.4 and above the booting procedure is slightly changed. The older version of FreeBSD uses the boot -s option at Ok prompt. However, with FreeBSD version FreeBSD 5.4+ you don't have to type any commands. 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.
Procedure: Reset FreeBSD root user password
Step # 1: Start FreeBSD server/workstation.
Step # 2: Press Enter key at boot loader.
At Welcome to FreeBSD! boot menu press spacebar key to pause default booting
Next you will see the following prompt from system:
When prompted Enter full pathname of shell or RETURN for /bin/sh:
Press Enter key to boot into a single user mode. Next, you will be immediately dropped into a single user mode without a root password.
You need to remount / (root) file system in read and write mode with mount command, type the following commands:
# mount -u /
# mount -a
Setup a new password with the passwd command for root user:
Next type exit command to boot FreeBSD into multi-user mode environment:
OR You can just reboot the system:
For more information see man pages of passwd and mount commands.TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!
- 30 Cool Open Source Software I Discovered in 2013
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012
- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop