СHRISTMAS
WHEEL OF FORTUNE

Tap the button and win a guaranteed prize right now!

By registering, you are signing up to receiving e-mails.
MA
Michael Anderson
December 2 2020
Updated June 7 2023

Restoring a root password via Recovery Boot

Control panel VPS

This instruction describes how to use a recovery image to restore a password for a root user.

Password recovery

First, open the server that you want to restore the root password for, from the server list.

1

Open a Recovery tab and select “Boot from the recovery image”.

2

Confirm a connection to the recovery image.

3

The boot type will be changed.

Important: after booting from the recovery image, the server will be accessible via a Web console!

4

To boot from the recovery image, you must restart the server from the control panel or using OS tools. Next, let's look at an example of a reboot from the control panel.

Go to the Actions —> Power tab and restart the server.

5

Confirm the server reboot.

6

After restarting the server, open the Web console.

7

Select the first option *Boot SystemRescueCd using the default options.

8

If a command line has been already displayed in the console, the boot option was selected by default.

9

Next, you need to find out which disk partition has got the system:
fdisk -l

10

In this case, it is /dev/vda2/.

Create a temporary directory for a new system:mkdir /tmp/reset

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

Change the root directory to a new one: chroot /tmp/reset

11

To change the root password, run the following command:passwd

Enter and confirm your new password.

PAY ATTENTION: When entering a password, the password characters are not displayed, but they are still entered!

12

Change the recovery image boot to the system boot in the Recovery tab in the control panel.

13

Restart the server from the control panel.

After restarting the server, connect to the server with a new password as usual.

Vote:
5 out of 5
Аverage rating : 5
Rated by: 1
33145 North Miami, FL 2520 Coral Way apt 2-135
+1 302 425-97-76
700 300
ITGLOBAL.COM CORP
700 300
We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.