If you have just installed Kali Linux, it is important to change the default credentials. You can do this within a couple of steps by using passwd
.
What Is passwd
passwd
is a command-line utility in Linux systems, including Kali Linux, used to change a user’s password. It allows users, especially administrators, to modify their own password or reset passwords for other users, such as the root user.
Change the Default Kali Linux Virtualbox Password
![Password updated successfully](https://cyberwarzone.com/wp-content/uploads/2023/07/image-170.png)
Here’s a short guide on how you can change the root password using the passwd
command:
- Open the terminal.
- Type
sudo su
and enter your password to switch to the root user. - Type
passwd root
and press Enter. - Enter the new password when prompted.
- Confirm the new password.
- Password successfully changed.
- Test the new password by logging out and logging in again as root.
Remember to choose a strong and secure password.
![Changing the Kali Linux Virtualbox default password with passwd](https://cyberwarzone.com/wp-content/uploads/2023/07/image-168.png)
That’s it. You have just learned how to change the default Kali Linux password.