Monday, September 19, 2011

How to change root password IN linux without knowing it?

I provide this information solely for educational purpose, any misuse of this article in any case will not be my fault and responsibility. Thus, dear friends use it for good.

Steps are as follows:
1) Startup your linux machine.
2) In the GRUB Screen, press "e" for edit.
3) After pressing "e" you will be prompted with three lines. Which shows the current disk in use for booting the system, the run level in which the system will boot, etc.
4) Now highlight the second line and again press "e".
5) You will able to edit that line, now at the end of that line type "1" (or) "single"
6) After typing "1" (or) "single" press "b" for boot. This will boot the system in single user mode. In linux single user mode usually doesn't require password for login.
7) After booting the system in single user mode, in the console or terminal type "passwd", which will ask you for setting the new password for root, change the password and login again as usual.

[ROOT PASSWORD IS CHANGED SUCCESSFULLY, ENJOY!!!!]









No comments:

Post a Comment