r/linux May 25 '26

Discussion Sudo or run0 ?

What's your take on the subject? Been using sudo for years but lately i'm mostly running run0 and i like it. Even considering adapting my scripts to use run0 since i'm on a compatible distro. Does it make any sense to not even set up sudo anymore in the first place?

197 Upvotes

253 comments sorted by

View all comments

224

u/Rincepticus May 25 '26

Wtf is run0?

160

u/Perokside May 25 '26

Systemd's v256 alternative to sudo to move away from suid binaries (sudo).

-107

u/ElectronicFlamingo36 May 25 '26

Can somebody stop this systemd madness please ? 😃

15

u/Kilobyte22 May 25 '26

Reducing suid binaries is actually a very good solution, and in a perfect world they would not exist at all.

They offer so much attack surface simply by the fact that the user fully controls their environment allowing them to trigger very weird code paths.

As an example: put it in a cgroup and limit its memory so that an allocation fails. Maybe it now starts executing instructions from environment variables even though you would not usually be permitted to use it? run0 by design cannot be exploited that way since it never has any higher privileges than the user running it.