In this article, we will learn how to reset root Password on Kali Linux step by step. When we install the latest Kali Linux machine we set up a stander user and we have to set the root password after that. So how to update or reset the stander user’s password as we as root user password.
Linux Commands
If you want to change the user’s password you have to check the login user.
Check Login User in Linux
pwd Command
Using pwd command you can check your working directory.
[[email protected] ~ ]$ pwd
whoami Command
Using whoami command you can see the login user name, who is login into your machine.
[[email protected] ~ ]$ whoami

Standard User’s Password
Now we have to reset the login user’s password using the following command.
[[email protected] ~ ]$ passwd
Changing password for kalilinux.
Current password:
New password:
Retype new password:
passwd: password updated successfully

Other Standard User’s Password
Using this command you can use the same command to change the password. Using the following command you can change the password.
[[email protected] ~ ]$ passwd kalilinux
Changing password for kalilinux.
Current password:
New password:
Retype new password:
passwd: password updated successfully

Reset root Password on Kali Linux
In the latest version of Kali Linux by default, the root user is disabled. We have to set the root password after installing the Kali Linux.
Switch to root Account in Terminal
After installing the Kali Linux we have to set the root password. So we have to switch from standard user to root user in the terminal. Do this is the command to switch the user.
[[email protected] ~ ]$ sudo -i
[sudo] password for kalilinux:
┏━(Message from Kali developers)
┃
┃ We have kept /usr/bin/python pointing to Python 2 for backwards
┃ compatibility. Learn how to change this and avoid this message:
┃ ⇒ https://www.kali.org/docs/general-use/python3-transition/
┃
┗━(Run: “touch ~/.hushlogin” to hide this message)
┌──(root💀tutorial)-[~]
└─#

Now here you can see, I am login as a root in the terminal.
Check Login User in terminal
pwd Command
┌──(root💀tutorial)-[~]
└─# pwd
/root
Using pwd command you can check your working directory.
whoami Command
┌──(root💀tutorial)-[~]
└─# whoami
root
Using whoami command you can see the login user name, who is login into your machine.

Reset root Password on Kali Linux
Now we have to reset root password on Kali Linux using the following command.
┌──(root💀tutorial)-[~]
└─# passwd
New password:
Retype new password:
passwd: password updated successfully

So this is the way to change or reset root password on Kali Linux. If you want to change the password you have to know your old password. If you do not know your old password in that case you have to follow the other way.
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.
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.
Tried, but won’t change. What’s wrong?
If you are using Xfce DE, this tutorial working. Please follow the tutorial.