Tutorial How to reset the root password on FreeBSD ?

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Vanilla

Elite
Elite
Joined
Jan 28, 2019
Messages
839
Credits
1,190
First thing, when starting the .vdi at the loader screen choose Single User Mode, in my case this is sortet as option number 2 so after pressing 2 the FreeBSD is loading a bunch of codes and we have to wait a little.

The number where the Single User Mode is set can be different from FreeBSD to FreeBSD.

Second, now after the machins is prompt and we are in the /bin/sh we can change our password.
Enter the following commands:


Then just press y when asked until you finish and see the following screen.
After making the fsck (which help us changing the password with no errors) use the following commands:

mount -u /
mount -a
passwd
After hitting the passwd command, just enter your new password and it should be fine, reboot and that's it!
 
Back
Top