Skip to main content
Reset and restore server password
Last update:

Reset and restore server password

You can view the password for root in Control Panel section Servers and HardwareServers → Server page → Operating System tab. The password is available for review 24 hours from the start of OS installation/reinstallation or configuration change.

If you forget or lose your password, you can recover it through recovery and diagnostic modes:

For macOS servers, you can't recover the password. To continue using the server, reinstall the OS.

Recover server password in Rescue

  1. Boot the server in Recovery and Diagnostic Rescue mode.

  2. Mount the OS file system.

  3. If the mount was done automatically with the infiltrate-root command:

    • change the password for root:

      passwd root
    • enter a new password and repeat it;

    • get out of the neighborhood. The partition will be automatically unmounted:

      exit
  4. If the mount was performed manually:

    • change the password for root:

      passwd root
    • synchronize the data:

      sync
    • log out of the chroot environment:

      exit
    • unmount the file system:

      umount /dev/sda1 /mnt
  5. Return the previous server boot template or reboot the server from the OS. When you reboot the server from the OS, the boot template will automatically change to the one that was set before change server boot template.

Restore server password in WinPE

If you set a blank password, you will not be able to connect via RDP and change the password via NTPWEdit.

  1. Boot the server in WinPE recovery and diagnostic mode.
  2. Run the password editing utility NTPWEdit.
  3. In the Path to SAM file field, check the path to the SAM security account manager file.
  4. Press Open.
  5. Select an account. If it is locked, unlock it with Unlock.
  6. Click Change password.
  7. Enter a new password and confirm it. If you set a blank password, you will not be able to connect via RDP and change the password via NTPWEdit.
  8. Press OK.
  9. Click Save changes.
  10. Return the previous server boot template or reboot the server from the OS. When you reboot the server from the OS, the boot template will automatically change to the one that was set before change server boot template.