PDA

View Full Version : Password reset on Kali 2023.1



FBS_ANAKONDA
2023-03-25, 20:16
I mistyped my password when changing it and now I don't know what it is. I tried the grub bootloader changes, but that didn't help. It got me into the terminal, but if I typed passwd username it just asked me for the current password. Anybody knows any technique that can reset or change my password without having to type it in? Please help, I can't reinstall it.

mostbetin
2023-04-10, 07:26
Good afternoon. You can try to reset the password in single-user mode:
Reboot your Kali system and press the ESC key when the GRUB bootloader menu appears.
Select the Kali Linux option and press the "e" key to change your boot parameters.
Add "init=/bin/bash" to the end of the line beginning with "linux".
Press Ctrl + X to boot with the changed configuration.
After booting you will be taken to the root shell prompt. Enter the command "mount -o remount,rw /" to remount the file system in read/write mode.
Enter the command "user password" (replace "username" with your username) to change the password.
Reboot the system by typing "reboot" or by pressing Ctrl + Alt + Del.