logoalt Hacker News

The Ubuntu 26.04 Rust sudo is not compatible with standard sudo

133 points • by wondersky • last Tuesday at 4:43 PM • 117 comments • view on HN

Comments

davb • yesterday at 10:23 PM

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.

➕ show 6 replies
Vaushite • last Wednesday at 12:54 AM

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.

➕ show 8 replies
orf • last Wednesday at 12:42 AM

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 • yesterday at 10:47 PM

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.
➕ show 1 reply
segmondy • today at 12:18 AM

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.

dmitrygr • today at 12:27 AM

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

proneb1rd • yesterday at 11:57 PM

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

ikmckenz • yesterday at 10:37 PM

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

➕ show 1 reply
dr_hooo • yesterday at 11:38 PM

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

bikvfeee • last Wednesday at 8:25 AM

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.

➕ show 11 replies
jolux • today at 12:15 AM

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

vzaliva • yesterday at 11:30 PM

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.

markhahn • yesterday at 11:14 PM

I prefer to have sudo uninstalled.

koterpillar • today at 12:28 AM

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

ethin • yesterday at 11:43 PM

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...

jmclnx • yesterday at 10:25 PM

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.

CurbStomper5 • yesterday at 10:30 PM

[dead]

IshKebab • yesterday at 10:24 PM

[flagged]