When booting, I can get root access to my Ubuntu 18.04 system without authorization by booting into emergency mode, i.e. by taking the following steps:
- Boot the machine, and in the GRUB menu, press
e
to edit the commands before booting - Search for the line starting with
linux
- At the end of that line, delete
$vt_handoff
and add thesystemd.unit=emergency.target
- Press
ctrl+x
to boot; you are now root.
This should not be possible, right?
P.S.: I guess this isn't possible if you disable the GRUB menu