Live data from Hacker News

You’re in the front of a Linux computer, you need a root access. What do you do?

jovicailic.org

1–10 of 35 posts

Re: You’re in the front of a Linux computer, you need a root access. What do you do?

#5
One does not even need to enable password protection of Grub. Linux will ask for the root password before granting access to recovery mode. That stopped working at the early 2000s. The author must use a pretty stupid distro to not notice it by 2013.

Anyway, want to gain access to the computer? Get a screwdriver.

Re: You’re in the front of a Linux computer, you need a root access. What do you do?

#6
post #3

Grub is password-protected, what do you do? (Boot from a live distro and chroot into the on-disk one)

Nice. Or if you use Gentoo, gentoo=nox on the end of the boot line at the boot loader.

How do you modify the boot loader if you don't have the boot loader password?

Re: You’re in the front of a Linux computer, you need a root access. What do you do?

#7

One does not even need to enable password protection of Grub. Linux will ask for the root password before granting access to recovery mode. That stopped working at the early 2000s. The author must use a pretty stupid distro to not notice it by 2013. Anyway, want to gain access to the computer? Get a screwdriver.

Ubuntu does not require a root password, because there isn't one. The default setup is to always require sudo to access root.

Re: You’re in the front of a Linux computer, you need a root access. What do you do?

#9
post #3

Earlier quoted context omitted.

Nice. Or if you use Gentoo, gentoo=nox on the end of the boot line at the boot loader.

How do you modify the boot loader if you don't have the boot loader password?

You supply the boot loader yourself... load from USB/CD/younameit

Re: You’re in the front of a Linux computer, you need a root access. What do you do?

#10

One does not even need to enable password protection of Grub. Linux will ask for the root password before granting access to recovery mode. That stopped working at the early 2000s. The author must use a pretty stupid distro to not notice it by 2013. Anyway, want to gain access to the computer? Get a screwdriver.

Linux is a kernel. It runs the PID 1 process with root permissions. It doesn't ask for anything. The PID 1 process might, though. So it depends on userland. Then, you can parametrize the kernel with the "init=..." boot option and specify which PID 1 process you'd want. Indeed, the easiest way to get root access is to set that kernel parameter from boot loader - if it allows you to. Which about every default boot loader does. Just set it to a shell and be aware that userland might be a bit picky because you didn't set up a proper session yet.
Post reply on HN