You are Here: FAQ ->Dedicated Servers->Article #3


I have forgotten my root password, can I reset it?


Yes, if you have forgotten your root password you can reset it using the
rescue system.

1.  Boot your server into rescue mode from the 1&1 Control Panel.

2.  Log in to the rescue system using the user root and initial password found
in the 1&1 Control Panel under Server Access Data.  This might also be a specific
password generated when you put the server into the rescue system from the 1&1
control panel.

3. Now you will need to mount /md1

rescue:~# mount /dev/md1 /mnt/

4.  From here you can see the fstab.

rescue:~# less /mnt/etc/fstab

This will provide you output to which partitions are mounted.  Example:

/dev/md5 /usr
/dev/md6 /home

This will vary from server to server depending on the OS installed.

5.  Next you want to mount /home, /var, and /usr:

Example:
rescue:~# mount /dev/md5 /usr/
(please note md5 may not be /usr/, you should refer to your fstab)
Most common are md5,6,7.

6.  After you mount the filesystem, you can then change the password by running
the passwd command.  First:

rescue:~#chroot /mnt
Then:
rescue:~#passwd

This will prompt you twice to modify the password.

Then exit the chroot, using the command 'exit'

rescue:~#exit

7.  Make sure you unmount your filesystem before reboot.
Example:
rescue:~#cd /
rescue:~#umount -a



Find out more...
How do I reboot my server in Windows Rescue Mode?
How to mount the internal hard disc.
How to boot a server from the command line.
How to restore the server using the rescue system.


Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not useful at all):
1 2 3 4 5