Hai friends, today we see about how to delete the forgotten password. Step 1: For Redhat and Mandrake:-
Then boot from your first install CD and as the very first screen comes up hit F2 and type: rescue ( For RedHat "linux rescue" ) and the computer will boot in rescue mode. It will show a few alternatives, select : ¨mount the existing partitions¨ and go to the shell/console prompt. ( Booting Mandrake in "failsafe" from the Lilo menu does the same ) Step 1: For SUSE: Boot from your first install CD and press F1 at the first screen, then choose "Rescue System" from the menu and at the prompt type "root" ( you do not need a password ) Step 1: For other distro's Boot from the first install CD ( or any Live CD like Knoppix ) and at the bootprompt type: # cd /etc We need to change two files; ¨passwd¨ and ¨shadow¨ in "/etc". # vi passwd ( opens the file ) press 'i' ( puts vi in insertmode ) This is the first line: root:x:0:0:root:/root:/bin/bash Make it: root::0:0:root:/root:/bin/bash So just get writ of the ¨x¨ do not touch the ¨:¨ ( colons ) Save the file: Esc ZZ Second file to be changed: CODE # vi shadow ( open the file ) < i > ( insert mode ) The first line is a long scrambled line of characters, just make it: root:::: ( four colons ! ) Save the file Esc ZZ Now you can reboot your computer. Log in as administrator , open a console and type the following command. $ passwd root Set the new root password ! And the job is done !! -- விஷ்ணுராஜ். க Kanchi Linux User Group Rocks ! http://kanchilug.wordpress.com My Experiments In Linux are here http://gnutuxfollower.wordpress.com _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
