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 the control panel: in the top menu, click ProductsDedicated ServersServers → Server page → Operating System tab . The password is available for viewing 24 hours from the start of installation and reinstallation of the OS or configuration changes.

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

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

Restore server password in Rescue

  1. Boot the server in Rescue recovery 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 the mount was done manually via the mount command, synchronize the data:

    sync
  8. Get out of the environment:

    exit
  9. If mounted manually via the mount command, unmount the file system:

    umount /dev/sda1 /mnt
  10. Revert to the previous server boot pattern 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 the server boot template was changed. the server boot pattern was set before the server boot pattern was changed.

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 a KVM console or VNC.
  3. Run the NTPWEdit password editing utility.
  4. Make sure that the Path to SAM file field specifies the path to the SAM file — this is the 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. Press OK.
  11. Click Save changes.
  12. Revert to the previous server boot pattern 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 the server boot template was changed. the server boot pattern was set before the server boot pattern was changed.