How to Reset root passwords on Kali Linux 2022.4

In this article, we are going to learn how to reset lost or forgotten root passwords 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.

In this tutorial you will learn

  • How to boot Into the GRUB menu on Kali Linux
  • Edit the GRUB menu
  • Change your root permissions in the GRUB
  • How to reset Kali root password
  • Reboot your system from the GRUB

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.

Reset root passwords on Kali Linux

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.

Reset root passwords 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.

Reset root passwords on Kali Linux

Check your RW permissions on the root partition

Type mount command and look for / root mount partition. Confirm that this partition is mounted with rw permissions.

(none)# mount

Linux File Permissions

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 root passwords on Kali Linux

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

Reset root passwords on Kali Linux

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.

Reset root passwords on Kali Linux

Video

In this video, I will show How to Reset Your Forgotten root Password in Kali Linux  | Kali Linux 2023.1

Important Things To Remember:

The author of this article does not promote any illegal activities It is just for education purpose All the activities provided in this article, YouTube channel, and on the website techdhee.org are only for educational purposes. If you are using and follow this tutorial for any illegal purpose, techdhee.org can not be responsible for your action. My purpose is to educate or share the information who have not, how to secure your self from the Internet, and the world of digital. Also, read the Disclaimer

Finally

Thank you for reading this post and keep connected to TECH DHEE to continue enjoying excellent posts. Share your views about this post in the comment section below. If you still have any queries, throw it in the comment section. If you find this post helpful, don’t hesitate to share this post on your social network. It will only take a moment, and also it is quite easy and useful for others.

Related Post

Leave a Reply

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