How to change Kali Linux Password
Meenakshi .
Project Lead | PSPO-1 Certified | Principal QA Engineer | Test Lead / Test Manager | #OpentoWork | End to end project deliverables
Please ensure these few things before beginning with the password change procedure:
Once the above things are confirmed, we can start following these steps:
Step 1: Boot into your machine to grub menu, do not choose anything or boot into Kali.
Step 2: Now you need to edit the grub entries, so you can spawn a root session. Press “e” key to enter edit mode.
Now you need to find the keyword “linux”, in our case you can see that the last line starts with “linux”, which is kernel selection. In our case “/boot/v,linuz-5.5.0.0-kali2-amd64” represents our active kernel.
Navigate in the line to “ro” (read only) and replace it with “rw” (read and write).
In the same line navigate to “quite splash” and replace it with command init=/bin/bash
Step 3: once you have made these changes press key “f10” to boot. Or, Instead of F10, you can press enter , right after that, press Ctrl+X.
This will create a terminal session with root privileges.
Step 4: Once you are in the terminal session you just need to enter the command:
passwd <root(or Account username)>
Step 5: Type new password in front of the 'New password:' and then retype the same to confirm the new password.
Press Enter and Let it setup the new password for you. Once the Kali Linux OS is restarted, it will ask you to enter your newly Set password to login with.
Kindly comment.