Serverspace has became Free TON validator, launched DePool, and gives bonuses for TON Crystals holders

How to recovery root password

Joe Harris
November 11, 2020

To restore the root password, select the current server:

Screenshot 1: how to recovery root password

Go to the Recovery tab and select Boot from the recovery image:

Screenshot 2: how to recovery root password

Confirm by clicking Confirm.

Go to the Actions tab and restart the server Restart button:

Screenshot 3: how to recovery root password

After restarting, open the Web console.

Select the first item *Boot SystemRescueCd using default option:

Screenshot 4: how to recovery root password

Screenshot 5: how to recovery root password

Once in the console, we find out on which disk partition the system is located with the fdisk -l command.

In this case, it is /dev/vda2

Screenshot 6: how to recovery root password

Create a temporary folder for our system mkdir /tmp/reset

Mount the system to the created folder mount /dev/vda2 /tmp/reset

Change the root system to our system chroot /tmp/reset

Screenshot 7: how to recovery root password

Calling the root password change with the passwd command.

Enter and confirm the new password. PAY ATTENTION: When entering a password the password characters are not displayed but are still entered!

Screenshot 8: how to recovery root password

Reboot the VM with the reboot command.

By analogy with point 2 go to the control panel of the required server and change the boot method to Boot from system volume and confirm.

Screenshot 10: how to recovery root password

By analogy with point 4 Restart the server.

Log in with a new password.

Start Your Cloud Journey Migration made simplified. Take the first step right now.
We use cookies to provide our services and for analytics and marketing. To find out more about our use of cookies, please see our Privacy Policy. By continuing to browse our website, you agree to our use of cookies.