Forgot the Kali Linux root password? Stress not! This tutorial discusses the steps to reset Kali Linux system password. Follow the steps, and you will get it done within minutes.
Boot Into GRUB menu
Start/restart the system -> Press ‘e’ to modify the boot menu.
Edit GRUB menu
Use navigational arrows to scroll down to the end of the menu -> Look for the keyword ‘Linux’ on the left side of the menu -> Replace ‘ro’ with ‘rw’ and ‘quite splash’ with ‘init=/bin/bash.’
Check RW Permissions on Root Partition
Press ‘clt+x’ to go into command-line mode -> input ‘mount’ to ensure the RW permission is mounted to the root partition.
Reset Kali Root Password
Type ‘passwd’ -> Prompt will appear to enter the new password, input that -> Verify the new password -> Password updated successfully.
Reboot the system using the following command ‘exec /sbin/init.’
That’s it. This is how you can reset root account password of your Kali Linux machine.