4 ms·
'systemd-run except with privilege escalation' is a thing I wished for for a long time, needed in production. Glad they finally made it, too bad it took them s
by otabdeveloper4 2y ago
'systemd-run except with privilege escalation' is a thing I wished for for a long time, needed in production.
Glad they finally made it, too bad it took them so long. (To be honest, it feels like it should have just been part of systemd-run in the first place.)
- intelfx 2y agoI mean, systemd-run could do privilege escalation from day one. It's even the default (otherwise overridable by systemd-run -pUser=<user>). I have used systemd-run --shell on countless occasions when I needed a clean root shell without any traces of the current environment. What is being announced is merely a thin layer of cmdline syntactic sugar over an existing feature, to make it closer to sudo in usage. So I'm not sure what exactly you were missing?
- otabdeveloper4 2y agoCurrently you have to do `sudo systemd-run --shell` if you want a root shell from a regular user's account.