Ubuntu 26.04's Rust sudo is not compatible with standard sudo
Ubuntu 26.04's Rust implementation of the sudo command is not compatible with the standard sudo. The Rust port, sudo-rs[1], states in the first few lines of its README that it does not aim to cover every feature that sudo has. Both the original sudo and the Rust port are distributed under permissive licenses[2].
One concrete difference is the removal of the -E option, which keeps the user's environment variables[3] when running a command. A commenter says sudo -E was by far the easiest way to run a graphical tool as root, and does not know what the replacement is meant to be — typing out DISPLAY, WAYLAND_DISPLAY, XDG_RUNTIME_DIR and other variables by hand.
Critics of the port argue that naming a rewrite after an existing project and tagging the language onto the name implicitly promises not to diverge too far, and ask why a new name was not chosen instead. Another commenter says sudo is one of the most important binaries on which breaking changes should be loudly flagged. Defenders reply that the README of sudo-rs already makes its limited scope clear.
Read the original utcc.utoronto.caDiscussion
Discussion
Commenters mostly debate whether keeping the sudo name implies a promise of compatibility, with defenders pointing to the README's stated scope and to both projects being permissively licensed. One commenter separates the motivations, calling memory safety[4] a good reason to choose Rust specifically and cleanup of technical debt a separate goal.
Sources
-
utcc.utoronto.ca
The Ubuntu 26.04 Rust sudo is not compatible with standard sudo


