Skip to main content

Reset and recover a dedicated server password

You can view the root password in the Control panel: in the top menu, click ProductsDedicated ServersServers → server page → Operating System tab. The password is available for viewing for 24 hours from the start of OS installation or reinstallation, or configuration changes.

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

You cannot recover the password for servers with macOS. To continue using the server, create a ticket.

Restore the 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 via SSH.

  3. Mount the OS file system.

  4. Change the password for the root user:

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

  6. Wait for the confirmation that the password has been changed:

    passwd: password updated successfully
  7. If you mounted the file system manually using the mount command, synchronize the data:

    sync
  8. Exit the environment:

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

    umount /dev/<partition> /mnt

    Specify <partition> — the disk partition you mounted the file system to in step 3.

  10. Restore the previous server boot template or restart the server from the OS. When you restart the server from the OS, the boot template will automatically change to the one that was set before changing the server boot template.

Restore the server password in WinPE

  1. Boot the server in WinPE recovery and diagnostic mode.

  2. Connect to the server in WinPE mode via KVM console or via VNC.

  3. Run the NTPWEdit password editing utility.

  4. Ensure that the Path to SAM file field contains the path to the SAM file — this is the Security Account Manager file.

  5. Click Open.

  6. Select the user account. If the account is locked, unlock it — click Unlock.

  7. Click Change password.

  8. Enter the new password. If you set an empty password, you will not be able to connect via RDP or change the password using the NTPWEdit utility.

  9. Confirm the password.

  10. Click OK.

  11. Click Save changes.

  12. Restore the previous server boot template or restart the server from the OS. When you restart the server from the OS, the boot template will automatically change to the one that was set before changing the server boot template.