We help IT Professionals succeed at work.
Get Started

Cannot login to kali linux systetm under Virtualbox.

Last Modified: 2020-08-18
System used to work perfectly. GUI comes up type root, ENTER, password ENTER, done
Now I get Sorry that didn't work. Try again.
No amount of tried will get me logged in.

Followed the below instructions to a T. No joy. I really don't want to spin up a new VM and load my utilities again. Any way to fix this>

How to Reset your Forgotten Root Password in Kali Linux 2019.2?

Step 1: Restart your Kali Linux, and when your computer boots up to Grub menu, use your downward arrow key to highlight 'Advanced Options for Kali/GNU linux', and then hit Enter key on the keyboard. 

Step 2: Highlight 'Recovery Mode', and then Press 'e' key on the keyboard.

Step 3: Now, On the Next Screen, Go to line linux and replace 'ro' with 'rw'. Also, go to the end of the line linux and then hit space key, and then type init=/bin/bash. Press 'f10' key (if you are using laptop, press fn + f10 key) on the keyboard. 

Step 4: Type command below to change password

        passwd root

and then hit enter. Type your password, and then hit Enter. Again, Re-type the password, and hit Enter. you will see the message, password updated successfully.

Step 5: Now, use the command below to reboot kali linux.

        reboot -f 

and then, hit Enter. 

Step 6: Let kali linux restart normally, and when you see login screen, enter new password. You will be able to login with that.

It's done 

Open in new window

Watch Question
System Administrator
This problem has been solved!
Unlock 1 Answer and 13 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE