Root Password Access how to
Posts: 43
Maybe this will help someone
To Reset The Root Password:
Startup with your favorite rescue CD (knoppix, LNX-BBC, or sysrescue )
Type:
# mkdir /mnt/temp
Mount the root partition of the system that you need to reset the password in the directory you created (example /dev/hda5):
# mount /dev/hda5 /mnt/temp
Change to the /etc directory of thre root directory that you mounted:
# cd /mnt/temp/etc/
Open the password file with a text editor (example vi editor):
# vi shadow
find the line in the file that has root's password that looks something like this:
root:$1$EcqQvr7p$HaiA51y9wuqdQCMj1ekKZ.:12614:0:99999:7:::
Delete everything between the first and second colons so that this example looks like this:
root::12614:0:99999:7:::
Save the file.
When you reboot to your system you can login to root with no password.
You should create a new root password as soon as you login.