Re:You’re in the front of a Linux computer, you need a root ...
by hwh on Monday March 24, 2014 @09:12AM
(#7457973)
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.
Re:You’re in the front of a Linux computer, you need a root ...
by ominous_prime on Monday March 24, 2014 @09:04AM
(#7457936)
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 ...
by lutusp on Tuesday March 25, 2014 @12:12AM
(#7463757)
> Ubuntu does not require a root password, because there isn't one.
That's true, but creating a root password in Ubuntu is child's play:
$ sudo passwd
(enter user password for sudo access to root privilege level)
(enter new password for root)
(re-enter new password for root)
Done.
> The default setup is to always require sudo to access root.
Yes, but this is a cosmetic distinction, not a basic one. Setting up a root password is always a few keystrokes away.
My point? Ubuntu isn't really different from other distros in this respect, it only appears to be.
Re:You’re in the front of a Linux computer, you need a root ...
by pdw on Monday March 24, 2014 @09:20AM
(#7458013)
If you have access to grub, you can edit the kernel command line and add init=/bin/sh. That will drop you in the initramfs, and you can mount the system's filesystems (assuming they're not encrypted of course).
Anyway, want to gain access to the computer? Get a screwdriver.