Kali Linux is a Linux distribution used in the Cybersecurity domain. It is maintained and funded by Offensive Security. Kali Linux is Debian based and it uses the Debian repository for most of its packages. This Linux distribution is designed for digital forensics and penetration testing. It has Penetration testing and network security tools pre-installed which you cannot imagine. It is completely free and open source. So you can use it for free and even contribute to its development.
Now forgetting login credentials is an annoying thing in the case of any operating system. Resetting forgotten passwords often comes with the risk of data loss and requires a lot of effort if you are not a technology enthusiast. This article will be a simple step-by-step guide on resetting forgotten passwords on Kali Linux.
How to Reset Forgotten Password on Kali Linux?
In this section, we will see how we can Reset Forgotten
Passwords on Kali Linux. So follow the below steps along with proper command
execution to Reset the Password on Kali Linux:
Step 1: Open the boot screen
Step 2: Open GRUB Options
Step 3: Modify boot parameters
The GRUB (Grand Unified Bootloader) menu contains entries
for different kernels and operating systems. Each entry has a line that
specifies the kernel parameters for booting. In the grub menu locate the line
starting with Linux and ending with a quiet splash.
Now change the ro (read-only) quiet splash with the following line to give read-write permission and enter single-user mode.
These changes are to gain access to a root shell with
read-write permissions, allowing us to make changes to the system. Now press
“CTRL + X” to exit the GRUB Menu.
Step 4: Adding new password
After you exit the Grub menu, the root shell prompt ( A terminal interface where the user has obtained superuser or root privileges) will open on your screen as shown in below output screenshot below.
Now if you don’t remember your username, you can type the following command here to check for your username
ls /home
To add a new password simply type, (replace username with your username)
passwd username
Now reboot your system by typing the following command. The
-f option stands for “force” reboot.
Comments
Post a Comment