How to crack linux root password

Hey you forget your root password...Don't worry here the is solution to crack the root password.
Let's try this..

Follow the below steps : -

1) Reboot your machine

2) Hold the "SHIFT" button during the boot to start the GRUB menu. 

3) Now it highlight your images and then press "E" button.
  • Why "E"?
    • "E" it gives you permission to edit the image.

4) Find the line starting with "linux" and go to the end of line and type 
    "rd.break console=tty1"
  • What is the meaning of console=tty1?
    • when you exit from grub menu then it provide one console for type some commands and crack password.
    • TTY stands for Teletype Terminal. And there are total 7 TTY's first 6 TTY's are console based and 7th TTY is graphical mode.

5) And press ctrl+x to start the booting


6) Now can see one terminal. On that terminal type 1st command:-
  1. mount -o remount, rw /sysroot
  2. chroot /sysroot
  3. passwd root
    1. Enter your new password two time's
  4. touch /.autorelabel
  5. exit
  6. exit
  • Why use touch /.autorelabel?
    • This step is taken to on SElinux enables linux system to relabel SElinux context.

Now you can login with your new password...

I hope you understand the carcking password
                                     
Thank You....!☺️☺️☺️

Save Tree

No comments:

Post a Comment

Linux booting process

What is booting process? Booting process in a Linux installation involves multiple stages, includes execution of boot-loader, initializ...