The Ubuntu 26.04 Rust sudo is not compatible with standard sudo

utcc.utoronto.ca

198 points by wondersky 4 days ago


davb - 19 hours ago

Further validation of our decision to move to Debian (as if the sluggish kernel updates and ramming of snaps down our throats weren’t enough). We migrated a few hundred lab machines this summer, and have around half of our servers and containers switched over. It has gone very smoothly.

Vaushite - 4 days ago

Tools have to be allowed to evolve. Half the Linux ecosystem's problems are caused by sticking on some design that made sense in 1980.

At least the command is still called sudo or run0. Changing it to doas would have been a much more breaking change.

Alas, TFA blocks me with no workaround because I'm using Tor Browser so I can't read about the nature of the changes.

orf - 4 days ago

Sudoers glob expressions are a horrible footgun and I have little empathy for anyone complaining about their removal, especially when it’s trivial to fix with 3 extra (explicit) lines.

randomblock1 - 19 hours ago

This is trivial to fix, at least for you.

  %corestaff ALL=NOPASSWD: /usr/bin/mailq "", \
                           /usr/sbin/exim -bp, \
                           /usr/sbin/exim -bpa, \
                           /usr/sbin/exim -bpc, \
                           /usr/sbin/exim -bpr, \
                           /usr/sbin/exim -bpu
That being said there definitely should be an automated way to check for incompatibilities between normal and rust sudo.
jamiesonbecker - 16 hours ago

> I do not really have words for this. The Rust sudo has apparently opted to keep the single most dangerous wildcard while disallowing all of the wildcards that allow one to be narrow and specific about what you're allowing, and it buries this at the end of a section that devotes a bunch of words to describing functionality it doesn't have and doesn't support, with absolutely nothing else in that section to say this (either up front or in the descriptions of how all the wildcards would work if sudo-rs supported them, which it doesn't).

> Also, this is documentation calculated to mislead busy system administrators who are skimming it to see if there is some big difference between the Rust sudo that Canonical has stuck them with and the real version of sudo.

just.. wow.

cowlevel - 12 hours ago

I think ubuntu-minimal is an empty package that depends on all the core system packages to be installed by default. If you remove it, nothing will happen immediately but the next autoremove will try to uninstall most of the system as it's no longer a required dependency of something.

jmclnx - 19 hours ago

Seems in Linux land, compatibly, even between distros, is going out the window. :(

Individuals can deal with that, but companies will have a hard time. You would think the Linux Foundation (LF) would chime in with all these differences. But they seem more concerned with AI than Linux these days.

If it was up to me, I would standardize on OpenBSD's doas, but me doing that would make for more incompatibilities.

ikmckenz - 19 hours ago

If they were going to make breaking changes anyways, they should have just switched to the much simpler `doas`

markhahn - 18 hours ago

I prefer to have sudo uninstalled.

proneb1rd - 18 hours ago

Strange that such issues haven’t been probed with ai. It’s good st finding regressions

dr_hooo - 18 hours ago

It also doesn't work with ansible, as I recently found out...

- 15 hours ago
[deleted]
kotaKat - 6 hours ago

Sidebar: TFW I haven't updated Thorium Mac since V150.

I got dumped to https://utcc.utoronto.ca/~cks/cspace-bad/cspace-old-browser.... trying to visit the page.

bikvfeee - 3 days ago

Could someone remind me why people use Ubuntu?

I remember 20 years ago Ubuntu was marginally more user friendly. Is it the power of inertia? Ubuntu is just Debian actively made worse.

rf15 - 10 hours ago

Can't read the article because

> You're using a suspiciously old browser

m8 it's firefox mobile from two months ago, calm down

vzaliva - 18 hours ago

Theress a bug. That happens. Reporting it should take way less time than writing a sarcastic blog post ("I haven't filed a bug because we aren't Canonical's free debugging resource"). It's open source, so I think reporting bugs or submitting a PR is just good citizenship.

jolux - 17 hours ago

“Calculated to mislead” feels like an absurd overreaction to some docs not being formatted the way you feel is appropriate.

Scoring6931 - 17 hours ago

What a ludicrous take.

Nobody's forcing you to use Ubuntu, a software that is free of charge by the way.

It's fine to disapprove of a decision. It's another thing to come with accusations and grudges like this post does.

hedora - 13 hours ago

Ubuntu’s new ln -h is a similar tire fire:

It does something in bsd:

https://man.freebsd.org/cgi/man.cgi?ln

Returns error in gnu:

https://www.man7.org/linux/man-pages/man1/ln.1.html

No-ops the command and returns success in new Ubuntu:

https://manpages.ubuntu.com/manpages/resolute/man1/rust-ln.1...

Given that the selling point of the rust rewrite is gnu compatibility, you’d think they’d RTFM of the thing they were replacing, or at least fuzz the two to confirm identical side effects.

I’m increasingly considering just pretending Ubuntu doesn’t exist. It’s a clown show, and devuan is fine.

ethin - 18 hours ago

And this is why you don't just jump to rust-written alternatives because they're supposedly "safer": the "safer" implementation might actually be incompatible (intentionally or otherwise) from the original, which for something like sudo or coreutils is... Erm, kinda important. Maybe "rewrite it in Rust" was a bad idea after all...

dmitrygr - 17 hours ago

To op: ubuntu-minimal is a meta packaged that contains nothing itself. Safe to remove.

koterpillar - 17 hours ago

Obligatory XKCD: https://xkcd.com/1172/

CurbStomper5 - 19 hours ago

[dead]

segmondy - 17 hours ago

I start using Ubuntu because my company used it, and they remind me of Redhat and the other Linux vendors that got too big for their breeches. For my personal stuff, I went all in on Debian, FreeBSD and OpenBSD and will never run Ubuntu for personal stuff. I still can't forgive them for adopting systemd or the Wayland mess and I suspect they are going to break more stuff.

IshKebab - 19 hours ago

[flagged]