Deprecated: Hook custom_css_loaded is deprecated since version jetpack-13.5! Use WordPress Custom CSS instead. Jetpack no longer supports Custom CSS. Read the WordPress.org documentation to learn how to apply custom styles to your site: https://wordpress.org/documentation/article/styles-overview/#applying-custom-css in /srv/www/srvfail.com/public_html/wp-includes/functions.php on line 6078
How to reset FreeBSD root password ⋆ SysAdminStuff

How to reset FreeBSD root password

Here are the steps to reset root password on FreeBSD 11.

Boot the system, and wait till you get to the Welcome to FreeBSD boot menu.

Once you are there, press 2 to boot the system to single user mode.

FreeBSD 11 boot menu

Wait till the server shows a following message: “When prompted Enter full path name of shell or RETURN for /bin/sh:”, and then press Enter key to complete the boot process to single user mode.

You will now be presented with console input.

In the console type following commands:

mount -u /
mount -a

Now you can use passwd command to change root user password, by typing in the new password when asked, and they retyping it on second prompt.

FreeBSD 11 single user mode

Once you have set a new password, reboot the server, and log in with the new password.

2 thoughts on “How to reset FreeBSD root password”

  1. try with mount -o rw -u / before doing passwd, also check if you have multiple entries for same user in /etc/master.passwd

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.