How to Reset Your root Password on Kali Linux

In this article, we are going to learn how to reset your root password on Kali Linux. We all know we can change the password from the terminal if we know the current password. But if we forget then we have to follow the following steps to reset the root password.

Reset Your root Password on Kali Linux

Boot into the GRUB menu

Reboot your Kali Linux system into the GRUB boot menu. When you are on the GRUB menu you have to simply press the E key in order to edit the default boot menu entry.

Boot into the GRUB menu

Edit the GRUB menu

Once you entered the GRUB menu edit mode you will be presented with the following window. Scroll down until you hit the line starting with the keyword linux

Edit the GRUB menu on Kali Linux

After you have located the line starting with linux, you have to use arrows to look for keyword ro and replace it with keyword rw. And Next, on the same boot entry find the keyword splash and replace it with init=/bin/zsh or init=/bin/bash

Change the GRUB menu Settings

Reset Kali Linux root password

At this point, we are ready to reset the root user password. Type passwd command and enter your new password. Enter the root password again to verify. Press ENTER and confirm that the password reset was successful.

(none)# passwd <username>

Reset Kali Linux root password

Reboot your system

At this stage, you are done. Simply reboot your system or continue booting using the following Linux command:

(none)# exec /sbin/init

Reboot your system from GRUB Menu

Login with New Password

Now after rebooting your Kali, You can login with new password. You can login with root and also with standard user account.

Login with New Password in Kali Linux

Conclusion

In this article, we are going to learn how to reset your root password on Kali Linux. We all know we can change the password from the terminal if we know the current password. But if we forget then we have to follow the following steps to reset the root password.

IMPORTANT THINGS TO REMEMBER

  • This article was written only for educational purposes.
  • The author can not be held any responsibility for damage caused by the use of these resources.
  • You will not use this information to gain unauthorized access or any other legal activity.

Read also Disclaimer

If you are using any illegal activities using these techniques kalilinuxtutorial.com can’t hold any responsibility for your action. This blog only for educational purposes where you will learn about Kali Linux how it works and how you can install any tools in Kali Linux.

Finally

If you have any questions about this article, any feedback, suggestions, or if you want to share your thoughts, please feel free to comment below. If you want to speak with us directly you can Contact Us.

Related Topics:

About The Author

Avatar

Leave a Reply

Your email address will not be published. Required fields are marked *