Hackonology Forums
How to crack root password in Ubuntu without Loggin - Printable Version

+- Hackonology Forums (https://hackonology.com/forum)
+-- Forum: Hacking & Cracking (https://hackonology.com/forum/forumdisplay.php?fid=12)
+--- Forum: Password Cracking (https://hackonology.com/forum/forumdisplay.php?fid=20)
+--- Thread: How to crack root password in Ubuntu without Loggin (/showthread.php?tid=50)



How to crack root password in Ubuntu without Loggin - Anonymous - 09-01-2020

Firstly, you need to either power on or reboot your Ubuntu system. You should get a grub menu as shown below. If you are running your system on VirtualBox, press the ‘SHIFT’ key on the keyboard to bring up the boot menu.

Next, press the 'e' key to edit the grub parameters.

Scroll down until you get to the line that begins with 'linux /boot/vmlinuz'

Narrow down to a section that reads "ro quiet splash $vt_handoff".(If available)

Replace "ro quiet splash $vt_handoff" with rw init=/bin/bash as shown. The aim is to set the root file system with read and write commands denoted by the rw prefix.

Thereafter, press ctrl + x or F10 to reboot your system. Your system will boot into a root shell screen as shown below. You can confirm that the root filesystem had read and write access rights by running the command.

# mount | grep -w /
# passwd username
# exec /sbin/init