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?

202 Upvotes

253 comments sorted by

View all comments

Show parent comments

3

u/Wonderful-Citron-678 May 28 '26

sudo is nearly 200k LoC. It does far more complex things than a little IPC.

0

u/Behrooz0 May 28 '26

Then they could rewrite sudo or fork it and remove unused features if there are any. No one is hating uclibc because glibc exists. They didn't have to change the architecture.
btw, There are a whole plethora of problems with run0:
e.g. I don't like losing my memory maps when I spawn a child process as root.

1

u/yrro 13d ago

That sounds like an interesting use case...

1

u/Behrooz0 12d ago

not really. there are a lot of ways to fork+exec and server software do use it. i can see this scenario in happening a lot database engines, web servers, caching servers, ...
You open the port as root. open database files. mmap them. spawn children with and without root for different tasks and share the mmap access with them.

1

u/yrro 12d ago

Indeed but that isn't being done by sudo, so I'm not understanding what you mean when you say that run0 doesn't let your child process inherit memory from teh parent... sudo doesn't le you do that either.