Reset and restore server password
You can view the password for root in Control Panel section Servers and colocation → Servers → 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 Linux servers — restore server password in Rescue;
- for Windows servers — restore server password in WinPE.
For macOS servers, you can't recover the password. To continue using the server, reinstall the OS.
Recover server password in Rescue
- Ubuntu и Debian
- CentOS
-
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
-
-
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
-
-
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.
-
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;
-
update the password checksums:
touch /.autorelabel
-
get out of the neighborhood. The partition will be automatically unmounted:
exit
-
-
If the mount was performed manually:
-
change the password for root:
passwd root
-
update the password checksums:
touch /.autorelabel
-
synchronize the data:
sync
-
log out of the chroot environment:
exit
-
-
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.
- Boot the server in WinPE recovery and diagnostic mode.
- Run the password editing utility NTPWEdit.
- In the Path to SAM file field, check the path to the SAM security account manager file.
- Press Open.
- Select an account. If it is locked, unlock it with Unlock.
- Click Change password.
- 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.
- Press OK.
- Click Save changes.
- 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.