Assuming you are using Kali Linux 1.0, Press "e" to edit Grub Menu. Find the line starting with "linux". Change the "ro" with "rw" and add "init=/bin/bash" after "quiet". Press F10. You will get "root" console. Type and enter "passwd" to change root password. You should be good.

I was following a tutorial (as I'm completely new to this) and stumbled across the "password" setting time. I typed my usual password from other applications and then saw nothing was appearing so I didn't bother it and continued. A couple of hours later, I wanted to install WSL but saw it needed by password, and then the realization hit. That's the story... Is there any way I can fix this?
VM Kali Linux
Forgot password to Oracle VM Virtual Box Ubuntu
[HOWTO] Recover Lost root password on a VirtualBox system
Highest scored 'kali-linux' questions - Unix & Linux Stack Exchange
Videos
Assuming you are using Kali Linux 1.0, Press "e" to edit Grub Menu. Find the line starting with "linux". Change the "ro" with "rw" and add "init=/bin/bash" after "quiet". Press F10. You will get "root" console. Type and enter "passwd" to change root password. You should be good.

Well I think there is a way taking it back if your user have sudo prvilage and you find out that username?
well let go through it... first you must find a live OS. you can use Kali in live mode , Ubuntu in live mode or whatever.
mount the hard disk that has Kali or the root of your Kali OS. find /etc/passwd and open it... you might find the username you set inside it. something like this: user:x:1000:1000:USER,,,:/home/user:/bin/bash
that's your username.
Hopefuly you know that username pass else you are screwed. if you have the pass you can login to kali with your own username.
to change root. you must use this command:
sudo su -
prompts your username's password.
now you have access to root!!!
change your root pass by passwd
You can reset your password through init=/bin/bash trick.
- First boot Kali Linux GRUB menu.
- Now in GRUB menu, select "Kali GNU/Linux" and press "e".
- Then in the next screen find a line starting with "linux".
- There replace "ro" with "rw" and replace "quiet" with "init=/bin/bash".
- Now type command
mountin the shell. - And then type command
passwd user_nameto reset password. - Now reboot with
exec /sbin/init.
Hope that helps
Note: If you have forgot your username to then you can run cat /etc/passwd to search for your username, or to filter only usernames run awk -F: '{ print $1}' /etc/passwd
Run cat /etc/passwd and see which one is your username. It's likely you'll see a lot of entries, but this is normal, because a lot of daemons run as their own user.
I just did a clean install of Kali Linux amd64 installer onto oracle vm virtualbox and I can’t seem to figure out the password or username to Kali Linux, I’ve tried both old and new default that I found ( u:root p:toor —u:Kali p:Kali ) and anything I thought it could be I created myself and nothing. How can I go about this?
Edit : also using Ubuntu x64
Hi,
Per the title, I am running Ubuntu (64-bit) Oracle VirtualBox version 7.0.14 and I forgot the password to my username.
I tried this:
https://en.m.wikibooks.org/wiki/Linux_Guide/Reset_a_forgotten_root_password
But it didn't help because I am running a Virtual Machine inside of Windows 11 Pro.
I also asked ChatGPT how to do it for a VM and it said either hold down the Shift key or press Esc repeatedly while the machine is booting up to bring up the GRUB menu.
None of what I listed above helped, or took me to the GRUB menu, any suggestions?