You are Here: FAQ ->Dedicated Servers->Root Server->HowTo...->Article #10


WebHosting 5.0 This article is for 1&1 Linux WebHosting only.


I have forgotten the root password of my Linux rootserver


WebHosting 5.0 : This document is valid for 1&1 Web Hosting 5.0 but not for 1&1 Microsoft Hosting.
I have forgotten the root password of my Linux rootserver, how can I reset it?


Log into your 1&1 Control Panel.

Set your Server to Rescue Mode and then reboot from control panel:



# ssh root@p15148268.pureserver.info 
root@p15148268.pureserver.info's password:
Linux rescue 2.4.27-040930 #1 SMP Thu Sep 30 19:03:28 CEST 2004 i686
unknown


Most of the programmes included with the Debian GNU/Linux system are
freely redistributable; the exact distribution terms for each programme
are described in the individual files in
/usr/share/doc/*/copyright


Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

No mail.
rescue:~# fsck.ext2 -fy /dev/hda1
e2fsck 1.27 (8-Mar-2002)
/dev/hda1: recovering journal
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/hda1: 44/65536 files (0.0% non-contiguous), 8264/65536 blocks
rescue:~# fsck.ext2 -fy /dev/hda3
e2fsck 1.27 (8-Mar-2002)
/dev/hda3: recovering journal
Clearing orphaned inode 2719906 (uid=27, gid=27, mode=0100640,
size=40279)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information


/dev/hda3: ***** FILE SYSTEM WAS MODIFIED *****
/dev/hda3: 103546/4898816 files (0.8% non-contiguous), 782353/9787601 blocks


rescue:~# mount /dev/hda3 /mnt/
rescue:~# mount /dev/hda1 /mnt/boot/
rescue:~# chroot /mnt/
rescue:/# passwd
Changing password for user root.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.


[Ctrl-D]


rescue:/# exit


Change to local boot and reboot from the commandline

rescue:~# reboot 


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