Kali Linux is one of the popular Linux distro Today It is also called as Hacking OS. If you forget both user and root passwords this tutorial is for you.

How to reset Kali Linux root password

STEP 1

Reboot Kali Linux into Advanced Option for Kali GNU/LINUX

Kali linux password reset

STEP 2

Then, select the second option recovery mode and press the “e” key and don’t hit enter button.

kali linux password forget

 

STEP 3

After that step, You will see in the image, the text “ro” in the red box and the empty red box required to have some modification as

kali linux password forget

Now, replace the text “rw” with the “ro”, and press the F10 button to save changes after adding the text init=/bin/bash at the end of the line.

kali linux password forget

STEP 4

The system will start rebooting and we got the shell to change the password. Type passwd command.

kali linux password reset

Now enter your new password. Enter the root password again to verify. Press ENTER and confirm that the password reset was successful.

How to reset Kali Linux User Password

STEP 1

Login into Kali Linux Root Account

STEP 2

Open the Terminal Window

STEP 3

Type passwd username

Replace username with your username. Now enter your new password. Enter the Username password again to verify. Press ENTER and confirm that the password reset was successful.