Friday, October 2, 2009

Root Password Reset as Offline

- Boot CD Bootable Linux ( DSL or Knoppix )
- Loading with Command Line ( Text Mode )
- Mount Harddisk that you want to reset root password
(#mount –t ext3 –o rw /dev/hda3 /mnt/hda3)
- Go to /mnt/hda3/etc/
- Type chmode 600 shadow
- vi shadow
- you will see root password as follow:
( Eg - root:$1$aB7mx0Licb$CTbs2RQrfPHkz5Vna0.fnz8H68tB:10852:0:99999:7::: )
- Delete Un-know Character as follow:
( Eg - root::10852:0:99999:7::: )
- Save & Exit
- type chmode 400 shadow
Now, you can enter as root with no password,
Just type user name = root, and password = enter key.

No comments: