How To Reset Forgotten Kali Linux Password
In This Article, We Are Going To Show You How To Reset Kali Linux Forgot Password.
We Know That We Can Able To Change Our Password If we Know Our Current Password by Using passwd Command.
Sometimes by mistake, we forgot Kali Linux password and were unable to get it, but there are some methods for kali to change the root password
But Now I Am Showing How To Reset Our Kali Linux Password If We Don’t know Our Current Kalilinux Password. Follow My Steps.
Step 1 : Boot Into GRUB Menu
-
How Do I Boot Into GRUB Menu
Reboot your Kali Linux system into the GRUB boot menu. Highlight the default boot menu you are usually booting from and press the e key in order to edit this boot menu entry.
Once you entered the GRUB menu edit mode you will be presented with the following window.
Step 2: Edit The GRUB Menu
Once You Are In The GRUB Menu Scroll Down To Find The Line Which Starts With the Word linux
After Finding The Line, Now Locate To The Word ro By Using Arrow Keys And Replace it with rw and same as Replace The Word splash into init=/bin/zsh or init=/bin/bash as per Your Shell.
After Replacing The Keywords Now Press CTRL + X To Boot.
Step 3: Checking Our Privileges.
To Check Whether We Have Root Access Or Not, Just Enter pwd To Know Our Current Directory Location.
Step 4: Reset Kalilinux Root Password
Now We are Ready To Reset the root Password. Now Enter passwd command To Change The Kalilinux Root Password And enter The New Root Password. Enter the Root Password again To Verify.
You Can Also Reset The Other Kali User Passwords by Running Command Like this.
passwd username
Step 5: Rebooting The System
Run This Command To Reboot The System:
exec /sbin/init
Step 6: Login With New Password
After The System is Rebooted You Can log in as root In Kalilinux With the Newly Created Kalilinux Root Password and also with a standard Kalilinux user account.