Root shell from grub

mayo 13, 2008

Well now, I’ll show you a trick to get root access without any password, from the grub it’s pretty simple, we’ll get access like recovery mode, and that will give us the root shell, just by modifying one line.

When the grub boots, type ‘e’ to edit the line that boots linux, then you’ll see some lines, edit the line that contains the kernel, then somewhere you’ll se ‘ro quiet’ or something like that, then erase from the end until the ro and edit to

ro init=/bin/bash

bash is the shell we want, it can be csh or sh.

Then press return and you’ll return to the lines of the grub in your linux choice, DON’T TYPE RETURN TO BOOT, BECAUSE THE TRICK WON’T WORK, YOU HAVE TO TYPE ‘b’ TO BOOT WITH THE LINE WE CHANGED, then you’ll have the root access.

Here’s the video hos this works.

Enjoy it