4

Reset the Root Password on FreeBSD

 2 years ago
source link: https://www.vultr.com/docs/reset-the-root-password-on-freebsd
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
<?xml encoding="utf-8" ??>

Introduction

If you are locked out of your FreeBSD instance and have lost access to the root account, you need to boot into single-user mode and reset the root password. These steps apply to FreeBSD 10.x, 11.x, and 12.x.

How to Reset the Root Password on FreeBSD

  1. Click the Server Restart icon in the Vultr customer portal.

    Server Restart

  2. Open the web console.

    Vultr Web Console

    You can also reboot the server from inside the web console. See the Web Console FAQ for more information.

  3. At the boot menu, press 2 for single-user mode. The prompt happens early in the boot process. If you miss the prompt, you need to restart the server from the control panel and try again.

  4. At the root prompt, type mount -u -a -o rw to remount the disk RW.
  5. Type passwd to change the root password.
  6. Reboot the server.

Want to contribute?

You could earn up to $600 by adding new articles


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK