The following hack is tested on RHEL OS and you needed physical access to the machine to perform this.
- Boot your system , at the time of booting press any key to access the GRUB Menu.
- Press 'e' to enable and move to the second line which starts with the kernel.
- Again press 'e' again to edit the kernel parameters.
- Add 'a' at the end of the line and press enter (without quotes). This will start the system in single user mode instead of default run level.
- Now press 'b' to start booting in single user mode.
- Now the system will start in single user mode and use the passwd command to change the root password. Sometimes passwd command will not work in that case assume that the SElinux is in enforcing mode.So you have to first disable it and change the password using passwd. To disable SElinux enforcing mode use setenforce 0 command.
- After changing the password switch to GUI mode using init 5 command and start using the newly assigned root password.
Hope you enjoy this hack.
Source:
http://www.opentech4u.com/2013/03/how-to-hack-linux-by-breaking-root.html
No comments :
Post a Comment
Silahkan kasih komentar atau pertanyaan Anda.