Home / Articles / BSD / FreeBSD / How to reset root password in FreeBSD

How to reset root password in FreeBSD

How to reset root password in FreeBSD
 
How to reset root password in FreeBSD
  • Currently 4 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 4/5 (1 votes cast)

Thank you for rating!

You have already rated this page, you can only rate it once!

Your rating has been changed, thanks for rating!

Log in or create a user account to rate this page.

Video version

This article describes how to reset root password in FreeBSD if the password is lost.

1. Boot the system in a single user mode. This must be selected in the boot menu.

Press 4 to select a single user mode in FreeBSD 8:

FreeBSD 8 boot menu

Press 6 then Enter to select a single user mode in FreeBSD 9:

FreeBSD 9 boot menu

2. Remount file system to read/write mode for root directory /:

mount -u /
mount -a

3. –°hange the password:

passwd

4. Type the new root password twice:

# mount -u /
# mount -a
# passwd
Changing local password for root
New Password:

5. Reboot the system:

reboot

Video version


 

Read also

Install MySQL server on FreeBSD

Install MySQL server on FreeBSD

Install Apache in FreeBSD

Install Apache in FreeBSD

Log in or create a user account to post a comment.

easyos.net
117217982212577402640

Quick navigation

General navigation