Change and recover cloud server password
You can view the password for the root user in control panel under Cloud Platform → Servers → Server page → Conssole tab → Password field.
If you forget or lose your password, you can change it in the control panel.
If authorization with a new password does not work or you have trouble changing it, recover password via Rescue recovery and diagnostic mode.
Change password
- In Control Panel, go to Cloud Platform → Servers.
- Open the server page → Console tab.
- Click Generate New.
Error when changing password
If Unable to set password on instance
error occurs during password generation, perform a soft reboot of the cloud server.
The error may occur due to small server disk capacity. The disk memory is occupied by the log log, due to which the required operations to change the password are unavailable. When the server is rebooted, some of the logs are deleted and there is space on the disk.
Restore password
- Linux
- Windows
-
Change the root directory of the OS:
infiltrate-root
-
Change the password for the root user:
passwd root
-
Re-enter the password.
-
Wait for a response that the password has been changed:
passwd: password updated successfully
-
Exit Rescue Mode. The server will automatically reboot.
Error when changing the catalog
If No root-device specified
error occurs while changing the root directory, mount the disk partitions.
-
Look at the disk file system and copy the partition IDs:
fdisk -l
-
Mount all disk partitions:
infiltrate-root <block_uuid_1>
infiltrate-root <block_uuid_2>Specify
<block_uuid_1>
and<block_uuid_1>
as the IDs of the disk partitions you copied in step 2. -
Exit Rescue Mode. The server will automatically reboot.
-
Create a directory to mount the disk partition:
mkdir /mnt
-
Look at the partition on the disk where the operating system resides — it's the partition with the larger volume:
fdisk -l
-
Mount the OS disk partition to the /mnt directory:
ntfs-3g /dev/sda4 /mnt
Here
sda4
is the disk partition where the operating system resides. -
Navigate to the /mnt/Windows/System32/config/ directory:
cd /mnt/Windows/System32/config/
-
Open the user list and copy the RID of the Administrator user:
chntpw -l SAM
-
Switch to the account editing mode:
chntpw -u 0x<rid> SAM
Specify
<rid>
— the RID of the Administrator user that you copied in step 6. -
To reset the password, select Clear (blank) user password. The items may differ in different versions of the program, in the example it is item 1:
q> 1
-
Close the file:
q> q
-
Confirm the changes:
q> y
-
Check that the password has been reset:
chntpw -l SAM
The response will display
*BLANK*
in theLOCK
column for the Administrator user:| RID -|---------- Username -------------| Admin? |- Lock? - |
| 01f4 | Administrator | ADMIN | *BLANK* | -
Exit Rescue Mode. The server will automatically reboot.
-
Set a new password on the server. After resetting the password, the first connection can be made without it. Go to Settings → Accounts → Sign-in Options.
-
In the Password block, click Add.
-
Enter a new password.