Hacker News new | ask | show | jobs
by joveian 728 days ago
If you want traditional single user mode that drops you to a root shell even though your root account is locked add SYSTEMD_SULOGIN_FORCE=1 to the environment of rescue.service and emergency.service (systemctl edit rescue.service). Of course that exact solution isn't always a good idea depending on the situation but in general that situation can be delt with differently from normal access while running correctly.
1 comments

Ouch, that's a major security issue if configured that way. That's something I'll want to add to my hardening checks.