Welcome to my site. Please CLICK HERE to give your opinions regarding this new look of "PCTipsbyAnu". Thanks for visiting.

Friday, December 17, 2010

Browse » Home » , , , , , » How to recover linux password when GRUB is also locked?

How to recover linux password when GRUB is also locked?

I know tht you have the trick to recover/crack/hack linux password but did you also know tht how to recover linux password when grub is also locked or grub password is lost?
I have the answer...
The only essential thing is that you should have a Linux boot CD ofthe same operating system for which you want to crack root password.Some other Linux boot CD may work in some cases. If system is able toboot from the CD, it will take you to a command prompt as shown.
Type ‘linux rescue’ at this command prompt and enter as shown
boot: linux rescue [Enter]
It will take you to some interface with some questions, answer themproperly. The system will go to temporary command prompt. Then issuethe following commands
[bash$] chroot /mnt/sysimage [Enter]
[bash$] cd /boot/grub [Enter]
[bash$] vi menu.lst [Enter]

Now in this file you can see a line beginning with the word ‘password’ remove this line and save the file.
Now system will be rebooted and you can see the grub without a password. Don’t forget to remove the CD.
Press ‘e’ at boot screen and again by taking the pointer to thesecond line press e. Now you can see yourself on a command prompt.Remove ‘rhgb quiet’ from there and write single and press enter.
Now you will come back to the boot screen. Press ‘b’ and system willappear to boot and leave you in command line interface like this.
Just type passwd like this
-bash2-$ passwd [Enter]
new password:
retype new password:
passwd: All authentication updated successfully.
Now you have set a new password. Now exit from the shell and system will boot properly in graphical interface.
-bash2-$ exit [Enter]
If there is any error in the procedure please post your suggestions.
You can leave a response, or trackback from your own site.

About 'Anu': My name is 'Anu' also Known as 'ANU 007 TIGER' .I'm administrator of 'PC Tips by Anu' blog .This blog was opened for sharing contents about hacking n cracking.


Post a Comment

Back to Top