Skip to content

murayr/linux-boot-as-root

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Booting as root from the bootloader - Linux Kernel

I was once locked out of my machine because I didn't install the config file for my lone window manager (i was being silly), so I decided to fix things up :)

While in the process, I thought about sharing how to boot as root and have root permissions.

Step 1

Turn on your machine, and after being greeted by GRUB bootloader, press E to modify how your machine will boot ( with command ) 1

Step 2

Locate the kernel loader, it should be under the name linux 2

Step 3

Add init=/bin/bash to the end of the kernel loader line 3 If the line doesn't contain rw, make sure to add it. After that, press F10 or whatever key it's being binded to to proceed booting

Demonstration

4

Kernel Panic

It's totally normal for a kernel panic to occur, your progress should be saved. 5

About

Booting as root from the bootloader - Linux Kernel

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published