The Ubuntu 26.04 Rust sudo is not compatible with standard sudo utcc.utoronto.ca...

@best

The Ubuntu 26.04 Rust sudo is not compatible with standard sudo utcc.utoronto.ca · 18 points · 1 comments · HN thread

TL;DR Chris Siebenmann reports that on Ubuntu 26.04 the default Rust implementation of sudo (sudo-rs) ignored his /etc/sudoers.d rules and, for a wildcard entry, ran a different command than standard sudo would. He switched to the classic sudo via update-alternatives and says sudo-rs's manual buries the omission of wildcards. The post is a complaint about compatibility and documentation, with a stated distrust of Canonical's motives.

  • On Ubuntu 26.04, sudo-rs did not grant a NOPASSWD rule that standard sudo honours from /etc/sudoers.d, and it logged nothing about it.
  • A rule for exim -bp[acru] was read literally, so sudo-rs allowed the argument "-bp[acru]", which Exim rejects as malformed.
  • The sudo-rs sudoers manual says wildcards in command-line arguments are unsupported and only a final '*' is allowed, a point the author says is buried at the end of a long section.
  • The author switched the system back to standard sudo with 'update-alternatives --set sudo /usr/bin/sudo.ws' and disabled sudo-rs in his installer framework alongside the Rust coreutils.
  • He says he did not file a bug, and that his organisation plans to move to Debian, possibly around 2028 when 24.04 LTS machines are replaced.

Discussion The thread is a single comment, so there is little discussion. The one commenter is unsympathetic to the complaint, arguing that sudoers glob expressions are a dangerous footgun and that the fix is trivial by listing the explicit commands.

  • Sudoers wildcards are dangerous; removing them is acceptable (a few): The only commenter, orf, calls sudoers glob expressions a horrible footgun. He has little sympathy for complaints about their removal and notes the fix takes three extra explicit lines.

#sudo #Ubuntu #Rust #sudoRs #sysadmin