Saturday, July 7, 2012

How To Break Root Password in Linux(Centos/RHEL 5)


How To Break Root Password

Case I:--

If Bootloader don't have password or we know bootloader password
Key Points:--
1.    Select Redhat linux title and press E to edit
2.    Press E to edit kernel line
3.    then type 1 after giving single space
4.    Below Editing
5.    kernel /vmlinuz-2.6.32-71.el6.x86_64 ro ....................crashkernel=auto rhgb quiet
6.    After Editing
7.    kernel /vmlinuz-2.6.32-71.el6.x86_64 ro......................crashkernel=auto rhgb quiet 1
8.    Then Enter and boot by B
9.    then check Selinux
10. if selinux is enforcing then change to permisive by:--
11. #setenfoce 0
12. then change password

Case II:--

If we don't know bootloader password
Key Points:--
1.    Boot by Linux DVD
2.    Select Rescue Mode
3.    #chroot /mnt/sysimage
4.    passwd      (cmd to change password)

No comments:

Post a Comment