5.3.15. Change root password on VPS

Important points:

  • For Linux servers only.
  • The server must be accessible for connection from our control panel using WebSSH.

Open the "VPS" section and on the "SSH / VNC" tab, click "Change password":

Important points:

  • For Linux servers only.
  • On Dedicated, manual password reset is performed similarly to this instruction, except that boot in Rescue Mode is used instead of connecting an image and KVM is used instead of VNC.
  1. Connect to the server the SystemRescue image (always available by default in the image list).
  2. Reboot server.
  3. Connect to the server via VNC.
  4. In the SystemRescue main menu, select "Boot SystemRescueCd using default options":
  5. Identify the disk on which the OS is located (usually the largest disk):
    fdisk -l

  6. Create a directory to mount the OS disk:
    mkdir /mnt/root

  7. Mount the OS disk (instead of /dev/sda1, specify your disk from the "Device" column in the fdisk output):
    mount /dev/sda1 /mnt/root

  8. Change the root directory from SystemRescue to the directory of the mounted disk with the OS.:
    chroot /mnt/root /bin/bash

  9. Set a new password (must be entered twice, characters are not displayed on the screen):
    passwd root

  10. Disconnect the SystemRescue image.
  11. Reboot server.
Content