How to Enable root User Account on Kali Linux 2025

How to Enable root User Account on Kali Linux 2025

We have been asked twice in our twitter account via message that how to enable root user in Kali Linux 2020. Previously (before 2020 versions) root users comes in default but Kali Linux moved to default non-root user in 2020.1 and later version.

This will help a lot to new learners and this is good for security reasons, but there was some advanced users who want to use Kali Linux in very aggressive way. They will surely miss the root user. Only for those people who wants root user by default again we are writing this, how we can login with root in Kali Linux 2020.2. Sometime it happens with us that we forgot to use the sudo command (using Kali from the backtrack days as root😊).

Active/Enable root user account in Kali Linux 2020

The main thing is root user is already there but it is not enabled. in this tutorial we are going to activate it in a simple way. This is gonna be very simple. After 2020 update root user doesn’t comes with a password. We just need to create a password for root user. That’s it

First we need to login in Kali Linux with our non-root user. Then we need to open our terminal and type following command:

sudo su

Then we type our non-root user’s password and we get root access in our terminal.

granting access sudo su

But we don’t stop here. We need to log in with the root user. Now we need to type following command:

passwd root

Then it will prompt for new password for the root user we can type anything but they will be invisible for security purpose. To confirm the password we need to type our password again.

sucessfully added root user password

Now all set. We have done it. Isn’t it so simple?

We just need to logout or restart our Kali Linux machine and we can use root in our username filed and the new created password in the password filed.

login root account in Kali Linnux 2020.2

That is how we can setting up the root account in Kali Linux 2020.

For more tutorials about Kali Linux and Cybersecurity visit our website regularly and follow us at Twitter and Medium. For anything to ask or we did mistake please let us know in the comment section. We always reply.

KP AKA Koushik Pal is a Security researcher and specialist focused on educating about Linux for cybersecurity and URL‑masking vulnerabilities. Creator of MaskPhish, a well‑known open‑source bash-based URL‑masking tool. Linux enthusiasts Active speaker, trainer, and advocate for secure web practices.

9 comments

comments user
Unknown

not root even logout or restart

comments user
Kali Linux

you need to login with root username.

comments user
Ghost Shadow

doesn't work

comments user
Ghost Shadow

2020.4

Followed instructions…after reboot, root name did not show, clicked on "Not listed?", used root name and new password, got message, sorry, that didn't work, please try again.

comments user
Anonymous

I got the same error.
Although I changed the root password for the other user, it didn't work.

comments user
Anonymous

try sudo apt install kali-root-login

comments user
onyx hackhat

sudo su
sudo install kali-root-login
sudo passwd
//type new root password
sudo reboot

//enter root as username and root password u typed in terminal

comments user
ARJ

Usefull 🥰

comments user
Unknown

edit bash.rc file for root access
check video link
https://www.youtube.com/watch?v=073erB0NutY

Post Comment