The Ubuntu 26.04 Rust sudo is not compatible with standard sudo

20 points by twp


lilac

this feels like conflating two goals of why you might want to rewrite something like this in rust.

if you’re naming yourself after an existing project and then tagging that language onto the name as the key differentiator, I feel like you’re implicitly promising not to go too crazy with that second goal. otherwise, why not pick a new name? there are people who might find a new thing that isn’t compatible interesting, but there are way more who will be tolerant of a thing that is just drop in compatible.

I wonder how this could’ve gone if ubuntu had waited until 26.10 to swap in these rust equivalents and then used some of the newer models that we didn’t have last year to do more compatibility testing up front long before an lts release..

JulianSildenLanglo

Of all the possible binaries you can choose to break compatibility with, sudo has got to be one of the most important to lamppost the breaking changes on.

hunger

To be fair: The sudo-rs project pretty clearly states that it does not aim to cover every feature that sudo has. Their README says so right in the first few lines.

Sudo is under a permissive license, just like the rust port. I fail to see what the locense problem is in this case.

mort

It annoys me so much that they removed -E. I used that all the time. By far the easiest way to run a graphical tool as root is with sudo -E. I don't know what the replacement is even meant to be; are you meant to type out the list of DISPLAY, WAYLAND_DISPLAY, XDG_RUNTIME_DIR, and whatever else I'm forgetting?