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 Products → Dedicated Servers → Servers → 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 Linux and Windows servers - recover the server password in Rescue;
- for Windows servers - recover server password in WinPE.
For macOS servers, you cannot recover your password. To continue using the server, create a ticket.
Restore server password in Rescue
Ubuntu and Debian
CentOS
Windows
-
Connect to the server in Rescue mode via KVM console or SSH.
-
Change the password for the root user:
passwd root -
Enter the new password twice. The password will not be displayed on the command line.
-
Wait for a response that the password has been changed:
passwd: password updated successfully -
If the
mountwas done manually via themountcommand, synchronize the data:sync -
Get out of the environment:
exit -
If mounted manually via the
mountcommand, unmount the file system:umount /dev/<partition> /mntSpecify
<partition>is the partition on the disk to which you mounted the file system in step 3.. -
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
-
Connect to the server in WinPE mode via a KVM console or VNC.
-
Run the NTPWEdit password editing utility.
-
Make sure that the Path to SAM file field specifies the path to the SAM file - this is the SAM security account manager file.
-
Click Open.
-
Select an account. If the account is locked, unlock it - tap Unlock.
-
Click Change password.
-
Enter a new password. If you set a blank password, you will not be able to connect via RDP and change the password through the
NTPWEditutility. -
Confirm the password.
-
Press OK.
-
Click Save changes.
-
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.