How to recover Kali linux password using LILO?

0

I forgot my Kali password and I tried getting into LILO single user mode but it still asks for root password (which I forgot). As a secondary measure I just ran

init=/bin/bash

The command runs but then it gets stuck when booting the system, I repeated this about 3 times but it still gets stuck in the exam exact place as last time (it gets stuck in a place where the prompt is just checking all my system specifications) so I guess this is some kind of security measure for Kali.

I don't know if I'm wrong. Any ideas on how to solve my problem?

net30

Posted 2014-09-14T22:30:03.520

Reputation: 56

Did you find a solution? I'm having the same exact problem – astralmaster – 2014-12-13T17:28:08.227

Answers

1

Steps to follow for systems using LILO bootloader

Step 1

At LILO bootloader type linux single and press the ENTER key:

Boot: linux single

Step 2

When presented with the command prompt, issue the passwd command.

passwd

Step 3

Before rebooting the system, it is a good idea to run the sync command.

sync

Step 4

Reboot.

You should now be able to login into the system with your new root password.

This website explains how to recover grub passwords as well.

David Paige

Posted 2014-09-14T22:30:03.520

Reputation: 309

I can use the Linux single command since it still asks my original root password – net30 – 2014-09-16T01:31:03.367