This blog post will explain how to change default credentials in a Kali Linux virtual machine (VM) after spinning it from a 2020.3 OVA image1.
Since release 2020.1, Kali uses a non-root user policy by default. This means that the default credentials for a pre-created image are2:
- username:
kali
- password:
kali
Running a machine with default credentials is like leaving your house door unlocked at night in a bad neighborhood. Let me show you how to lock this door properly.
We will first change root and kali passwords, and then rename the default user together with its home directory and group.
Now change the password for kali too by typing passwd kali
. The process is the same as the one in the image above. Now log off and log in again as root.
Rename the default user with your username3:

Rename the home directory4:

I hope you liked this post. If you have any question, feel free to leave a comment in the comment section. Never stop learning!