Onforum.net - Web and gaming resource community

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members .

Tutorial How to reset the root password on FreeBSD ?

Vanilla

Elite
Elite
Credits
1,180
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!
 

Similar threads


Top

Dear User!

We found that you are blocking the display of ads on our site.

Please add it to the exception list or disable AdBlock.

The advertises that you'll see aren't intrusive they just help us to keep the community alive

If you don't want to see those ads just buy an upgrade.

Thank you for understanding!

Baba2

Baba2 Purchase

User upgrade! at

🔥 Upgrade Now

Escanor25 Purchase

User upgrade! at

🔥 Upgrade Now
Tigrex

Tigrex Purchase

User upgrade! at

🔥 Upgrade Now