reset root Password on Kali Linux

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
Check Login User in Linux

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
Standard Users Password

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
Other Standard Users Password

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)-[~]
└─#
NoteThere are many ways to switch the user account but I am using this one.
Switch to root Account in Terminal

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.

Check Login User in terminal

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
Note To change or reset the user’s password, the command is always the same. And if you are login as root you are able to change any user’s password from the terminal.
Reset Kali Linux root Password

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.

About The Author

Avatar

Comments

Leave a Reply

Your email address will not be published.