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
eto edit the commands before booting - Search for the line starting with
linux - At the end of that line, delete
$vt_handoffand add thesystemd.unit=emergency.target - Press
ctrl+xto 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