Skip to main content
Reset and restore the password of a dedicated server
Last update:

Reset and restore the password of a dedicated server

You can view the password for the root user in control panels under Servers and hardwareServers → server page → tab Operating system. The password is available for review 24 hours after the start of the installation and reinstalling the OS or changing the configuration.

If you have forgotten or lost your password, you can recover it via recovery and diagnostic modes:

For macOS servers, you cannot recover the password. To continue using the server, file a ticket.

Restore server password in Rescue

  1. Boot the server in Rescue and Diagnostic mode.

  2. Connect to the server in Rescue mode via KVM console or SSH.

  3. Mount the OS file system.

  4. Change the password for root:

    passwd root
  5. Enter the new password twice. The password will not be displayed on the command line.

  6. Wait for a response that the password has been changed:

    passwd: password updated successfully
  7. If manual mounting (via the command mount), synchronize the data:

    sync
  8. Get out of the environment:

    exit
  9. If manual mounting (via the command mount), unmount the file system:

    umount /dev/sda1 /mnt
  10. Bring back the old server loading 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 changes to the server load pattern.

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. Connect to the server in WinPE mode via KVM console or VNC.
  3. Run the password editing utility NTPWEdit.
  4. Make sure that the field Path to SAM file file path SAM — is a SAM security account manager file.
  5. Click Open.
  6. Select an account. If it is locked, unlock it: tap Unlock.
  7. Click Change password.
  8. Enter a new password. If you set a blank password, you will not be able to connect via RDP and change the password through NTPWEdit.
  9. Confirm the password.
  10. Click OK.
  11. Click Save changes.
  12. Bring back the old server loading 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 changes to the server load pattern.