Root Password reset via Rescue (Linux)

To reset your root users password via the rescue mode, follow this instructions:

1.) Set your server to the rescue mode via the central customer management to do that, login at the central customer management, and go to dedicated server management, there you trigger the function "start rescue mode" after the rescue system is booted successfully, the central customer management will show the rescue password where you did click on "start rescue mode" before.

2.) Use this password the central customer management does show to connect via SSH to the rescue system now.

3.) If you are connected, enter the following command to find your system partition (hard drive):

(The following command can help you to determine the correct partition the biggest partition is usually the root partition):

fdisk -l

or

parted -l

Mount your "root partition"

3 a.) without software-raid use:

(note: /dev/sda1 can vary)
mount /dev/sda1 /mnt

3 b.) If you have a software-raid use:

(note: /dev/md0 can vary)
mdadm --assemble --scan /dev/md0
mount /dev/md0 /mnt

4.) Now as your drive is mounted, mount procfs and devfs:

mount -o bind /dev /mnt/dev
mount -t proc /proc /mnt/proc

5.) Now use "chroot" to enter the system and change the password:

chroot /mnt /bin/bash

6.) You are now connected to your system, type passwd to change the password:

passwd

At this point you'll have to enter your new root password two times.

7.) now as the password has been set, clean up and unmount the file system:

type: exit (to leave chroot)

then type: cd / (to leave the folder you are currently in) then use:

umount /mnt/proc
umount /mnt/dev
umount /mnt

to unmount the drives.

8.) Deactivate the rescue mode in the central customer management (http://zkm.myloc.de) then type "reboot" in the rescue system to boot in normal mode.

9.) use your new set password to connect to your system.

  • 22 Users Found This Useful
Was this answer helpful?

Related Articles

 How can I configure my virtual machines using hostroutes?

Example configuration In the following examples we assume that the following IPs are used: IP...

 How to work with the rescue system?

Our rescue system is compareable with Debian. Any basic Linux commands can be used. Activate...

 How to install an own operating system image without a hardware KVM over IP?

If you want to install an own image, for example to prepare your own partition set, you can do...

 IPv6 (Internet Protocol Version 6)

he old IPv4 protocol supports 4,3 billion addresses for the world wide web. IPv6 was developed by...

 Plesk

https://docs.plesk.com/en-US/12.5/