Passwords are the sole criteria of system Security for approx all the System. And when it comes for Linux, if you knows the root password you have all the authority to do anything in it. Passwords are as a Security measure for BIOS, Login, Disk, Application, etc.
Linux is considered as the most Secure Operating System to be hacked or cracked and in reality it is, still we will discussing some of the loop-holes and cracks of a Linux System.
when your OS selecting the kernel in starting then there is an option for editing by pressing â€œeâ€ button on keyboard by which you can done editing in between booting process and also able to crack password of root.
Site Links:- Kali Linux Commands Cheat Sheet
When you are in editing mode by pressing â€œeâ€ button then there is a coding on screen. When you have to go down in coding then there is a line which started by â€œlinux16â€. In end of this line, you have to write â€œrd.breakâ€ and press â€œCtrl + xâ€ by which booting will start again and give a command line interface where you can run further commands which is required to crack password of root.
Site Links:- Linux Commands Cheat Sheet
On command line interface, you have to write command-
mount -o remount,rw /sysroot
-> By this command, you are going to remount with read and write permission on â€œ/sysrootâ€.
-> In this command, â€œ-oâ€ option is used for give option for remount.
By this command, you get an interactive shell with special root directory because you want an interactive shell on which you can easily run command to change password of root.
This is command for changing password of any user so you are going to change password of root.
By this whole command, you have to make sure that all unlabeled file ( like â€œ/etc/shadowâ€ file ) get relabeled during boot.
Now by write â€œexitâ€ on command line by which you can exit from interactive shell.
Now again you have to write â€œexitâ€ on command line interface by which you can exit from command line interface and booting process will again started with new root password.
By these steps, you can crack root password easily.