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):
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:
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:
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.
Was this answer helpful?
When using a software RAID, it is necessary to check for proper functionality, since in case of...
If you want to install an own image, for example to prepare your own partition set, you can do...
he old IPv4 protocol supports 4,3 billion addresses for the world wide web. IPv6 was developed by...
If you lost your Plesk Administrator Password, you can reset this with an SSH or...
Powered by WHMCompleteSolution