June 23rd, 2024

Systemd Looks to Replace sudo with run0

Systemd introduces "run0" to replace sudo in Linux. It offers secure user elevation without SUID, using a service manager for command execution. Creator Poettering aims for enhanced security and usability. Systemd 256 with run0 is on GitHub for testing.

Read original articleLink Icon
Systemd Looks to Replace sudo with run0

Systemd, a crucial init system in Linux, is introducing a new tool called "run0" to potentially replace sudo. Run0, part of the upcoming systemd 256 release, aims to provide similar functionality to sudo but without being a SUID binary. It works by querying the service manager to execute commands under the user's UID, allocating a new PTY for data transfer. Creator Lennart Poettering highlights that run0 is designed to be more secure than traditional sudo alternatives like "doas" by reducing the attack surface. Additionally, run0 will visually indicate elevated user rights by changing the background color. Despite potential challenges in adoption due to its longer command name, run0 is positioned as a viable alternative to sudo. The first release candidate for systemd 256, featuring run0, is already available on GitHub, with the final release expected to include a stable run0 experience and other improvements.

Link Icon 9 comments
By @JNRowe - 5 months
Close to nine-hundred comments¹ when Lennart posted about run0 on mastodon² a couple of months ago.

¹ https://news.ycombinator.com/item?id=40205714

² https://mastodon.social/@pid_eins/112353324518585654

By @bigbuppo - 5 months
Systemd, the software that recently added a feature that deletes users' home directories?
By @pasquino - 5 months
They are free to add whatever they want, if I'm free to not use it, to disable their stuff without break my OS. Because at the end, that is MY computer not Lennard's. I moved from Windows for that reason, avoid a OS that deprive me the authority on MY PC. If it won't be possible in future, I'm already studying OpenBSD. Anyway, my desire is a systems-free linux officially supported by major software houses.
By @c22 - 5 months
I'm okay with this as long as they don't come for my doas.
By @petre - 5 months
Great, more lennartware unleashed upon us, more systemd nonsense to disable. Thankfully there’s s6-sudo, doas. The former solves the same problem with a daemon without messing with PID 0.

https://skarnet.org/software/s6/s6-sudo.html

By @spcebar - 5 months
Surely, just like systemd was, this will be completely without controversy.
By @mindcrash - 5 months
Thank God for giving Daniel to the world, and Daniel for giving the world Gentoo and the ability to run your own Linux setup however the fuck you want.

Ages ago people warned Lennart would start doing fuckery like this, but apparently all for nothing.

What's next? Replacing the Linux kernel because it "isn't good enough" according to mister Poettering?

By @coretx - 5 months
Just switch to doas already.
By @JackSlateur - 5 months
Is sudo even useful ? I could argue that it has only few sane usage. Indeed, those usage are importants.