Top
Best
New

Posted by wondersky 5 days ago

The Ubuntu 26.04 Rust sudo is not compatible with standard sudo(utcc.utoronto.ca)
206 points | 194 comments
davb 1 day 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.
kbenson 1 day ago||
We're an redhat (originally) and derivatives based shop for 30 years now, but if I was going to choose a different stable enterprise level distro to base a fleet on, there's a very good chance it would be Debian.
csdreamer7 1 day ago||
Why would you move to Debian? Have you used it recently?

I am struggling to remember, but the last time I tried Debian a year ago there was a lot of setup and a few things broken (I think it was outdated packages). One of the things I tried to setup was a RAID array which was a very involved experience. It felt like things were not being tested. While on RHEL it was a simple point and click in Cockpit.

kccqzy 1 day ago|||
My employer has similar plans. Ubuntu 24.04 will be the last Ubuntu release in use for production. Once the support period ends, we are migrating to NixOS.
stephenlf 1 day ago|||
I don’t have any skin in this rs-coreutils debate. But Ubuntu still hasn’t patched CVE-2026-98432. We’re migrating too
MaKey 1 day ago||
They have. I just updated my resolute system to the patched kernel 7.0.0-43.43. Patched kernel versions have been available via the -proposed pocket before: https://ubuntu.com/blog/fixes-available-in-proposed-pocket-f...
lakeviewterrace 1 day ago|||
> we are migrating to NixOS

So you're moving from a distro that's being wrecked by ideologically-driven decisions, to one that is almost entirely ideologically motivated and notable for internal drama. Great choice, best of luck.

poly2it 1 day ago|||
Care to elaborate?
rzgabriel 1 day ago|||
Haha, I didn't believe what they told me about the community until I experienced the toxicity first hand.

Still wouldn't switch to another distro anytime soon, you know, sunk cost fallacy and all that.

foxhill 1 day ago|||
i set up a bunch of machines at my new place. ubuntu.

my weekend project is moving them over to debian.

it pains me, ubuntu used to be “the” linux i would point people to. the “un-fuckup-able” thing people should try if they’re switching.

whatthejesus 1 day ago||
The Rustaceans will come for you too. While you’re asleep, they’re watching Claude port the entire Debian userspace to Rust in the name of Jesus Christ amen.
whynotmaybe 1 day ago|||
You're so very right https://news.ycombinator.com/item?id=50399400
whatthejesus 1 day ago||
Oohhh there’s one more C vulnerability. Oh my gosh, what ever will I do? Should I buy a new smart toaster? I’m not sure. I just really don’t know what to do right now.

It’s called pay attention and f*king upgrade your packages.

whynotmaybe 1 day ago||
I guess I forgot the /s on my post.

I don't understand the behaviour behind "the language I'm using is better than X because it has option M and N"

I was there not so long ago when Java was supposed to replace everything, and then C# came, and then Go but my pay was still handled by COBOL that was also supposed to be better.

whatthejesus 23 hours ago||
Yeah I hear ya. I mean they all work fine there will always be something better at some things than others. And there will always be vulnerabilities.

Programmers have some hyper optimization disease where they don’t see things clearly.

foxhill 4 hours ago|||
what has this got to do with rust?
juujian 1 day ago|||
I honestly don't understand why there isn't more people talking about debian. Ubuntu is always mentioned, but it's going down hill, and debian is the obvious alternative. When I went from Ubuntu to debian, I got way more recent versions of my software. That used to be the only complaint people had with debian.
boredatoms 1 day ago|||
I wish debian would include ssh-import-id in the installer, its a minor change but big quality of life improvement that ubuntu has
jamiesonbecker 1 day ago||
would Userify solve that need for you? old but reliable
laurencerowe 1 day ago||||
Whether Debian or Ubuntu LTS have newer versions of software really just depends on which was most recently released - they both have a 2 year release schedule but release on alternating years.
sgc 1 day ago||
Debian testing seems to be more stable than what most distros put in main. I bend the rules and get most everything from backports to have the best of both worlds (stable + testing).
laurencerowe 1 day ago||
From my experience (albeit 20 years ago) Debian testing was basically unusable since it could get into an unworkable state quite easily. You were much better off running unstable instead if you needed the absolutely most recent versions of stuff. It would still break occasionally but would get fixes would be available much sooner.

Backports are quite variable. Distro packaging systems are really awkward for software from language ecosystems with many dependencies. I end up having to install a static build of podman if I want a recent version. A backport basically seems impossible.

sgc 1 day ago||
I have been running with backports for years and can't remember the last time I had a problem. Perhaps things have matured over the years to explain the different experiences.
laurencerowe 20 hours ago||
Backports don’t break a stable install, they tend to either work or are incompatible due to underlying library mismatches (eg libc upgrade.)

However running a testing install can result in a broken system after an apt upgrade and it can stay broken for some time while fixes work their way in from unstable.

Grimeton 1 day ago|||
Ubuntu is a frozen debian/sid. At least it was back in the day.
jjcm 1 day ago|||
As someone who's been using ubuntu since warty warthog, what did you end up switching to / what are other people using these days?
everybodyknows 22 hours ago|||
I just sidelined Ubuntu 24.04 for Debian stable on new home desktop hardware.

Impressions:

1. Installer a bit rough. Tried both "graphical" and curses modes: Both truncated partition-specific strings from the manufacturer's Windows setup. No contextual help; wiki seemed out-of-date.

2. Good choices for initial packages; good apt speed from default server.

3. Firefox base version is four months old -- but is a ".7", so maybe seven rounds of bug fix backports? Ubuntu FF snap version on old hardware is by contrast a ".0", tracking much more recent upstream. Which mostly seems to get me a lot of annoying confections and semi-weekly demands to restart for the new version -- after each of which I must then manually repopulate GNOME's desktop workspaces.

4. Snap-induced clutter of home dir and filesystem utility output is gone! Loving that part.

KronisLV 1 day ago||||
Debian for servers and could also be for desktop, though for desktop Mint seemed okay (still Ubuntu based, just without the focus on snaps and the Cinnamon desktop is nice; this one doesn’t fit the question exactly, but figured I’d mention it anyways cause had a pleasant experience).

Whereas on the RPM side Fedora is pretty good for desktop and something like RockyLinux for your servers (essentially carries on the spirit of the old CentOS).

Then again, I never really needed any of the more fancy modern distros, most of the time I just need good LTS and to run Docker, many might prefer Podman.

nightpool 1 day ago||||
They said—Debian
jjcm 1 day ago||
doh - im an idiot. I read that as "from debian", assuming they were referring to the wider debian suite. TY.
vondur 1 day ago||||
I use Fedora if that's helpful. Well, I've been using Bluefin for the last few months and it's certainly different.
jcastro 1 day ago||
Bluefin uses sudors and uutils too!
petre 4 hours ago||||
Debian, openSuSE, Fedora, Rocky, Arch depends what you are using for. One of the first 3 if you're running it on a desktop. Debian if you want the LTS part and the huge amount of packages. Arch if you're feeling more adventurous and don't mind weekly updates. Fedora if you can put up with redhatisms, SuSE otherwise. Rocky if you're running a server and don't want to bother with Debian's config dir OCD or openSuSE's shorter lifecycles.
willis936 1 day ago|||
I used to use ubuntu for most everything. This year I'm trying arch a la cachyos. It's actually super nice to not have to wait for hardware support and security patches. Has anything broken? Nope. In fact, things that I would just have to deal with as "teehee isn't linux quirky?" shit is mostly gone. Turns out that it really is as simple as canonical and gnome being the problem.
origini 1 day ago|||
I mean i switched because of current packages including changes like rust sudo if it makes it better (I do remember a few sudo CVEs).

Are you know running debian with testing or unstable?

ksudb 1 day ago||
[dead]
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.

WhyNotHugo 1 day ago||
sudo.rs is a really weird direction for an evolution — it re-implements a complex piece of security dropping some arbitrary choices but keeping it pretty complex. It has the exact same security model. I honestly can't understand the appeal.

If you want something similar but simpler, go for doas.

If you need all the features in sudo, keep using sudo.

If you want to try new security models, try s6-sudo, or any other of various tools out there.

sudo-rs keeping the same name is actually a worse breakage — because it doesn't have the same API as sudo (as described by op), but has the same name and pretends to be a drop-in replacement while also not being a drop-in.

egorfine 1 day ago||
> I honestly can't understand the appeal.

Virtue signaling.

KitsumiTheFox 1 day ago||
I fail to see how the term virtue signaling applies to what you highlighted, care to elaborate?
egorfine 1 day ago|||
Rust rewrites of existing rock stable applications is only done for performative reasons as there are no merits.
db48x 21 hours ago|||
Sudo may not be as “rock stable” as you suppose. The sudo-rs project has discovered a number of exploitble bugs in sudo that had existed for years.

And remember that sudo was itself a replacement for earlier tools like su. It has no special claim to be the one and only tool for the job.

pjmlp 1 day ago|||
And pimp up my CV kind of stuff.
kelseyfrog 1 day ago|||
The virtues being signaled are trust, reliability, and generosity. The mechanism is rust-washing. Like greenwashing, rust-washing has the appearance of and takes credit for the virtues without actually delivering on them.
bikvfeee 4 days ago|||
To many of us it's not about the features which you obliquely refer to when you say "evolve" but about licensing. It's extremely concerning that we're replacing GPL stuff for non GPL, and just as concerning that so many folks don't recognise this point.
thesuperbigfrog 1 day ago|||
sudo is MIT-licensed: https://github.com/sudo-project/sudo/blob/main/LICENSE.md

sudo-rs is MIT-licensed: https://github.com/trifectatechfoundation/sudo-rs/blob/main/...

Perhaps you are thinking of uutils? https://github.com/uutils/coreutils/blob/main/LICENSE

solyin 1 day ago||
That is the problem. MIT isn't GPL. In our new AI powered future, we want the source so we can fix it ourselves.
burnte 1 day ago|||
MIT is a source code license. If you have MIT licensed source code then you already have the source code and can fix it yourself. No different than GPL.
gatlin 1 day ago||
It is materially different to the GPL and inferior in all such ways.
burnte 22 hours ago|||
I disagree on both points. The only difference is the lack of a requirement to share your changes under MIT. That makes it only inferior depending on your perspective. You are entirely allowed to feel it's inferior, but it's not FACTUALLY inferior, just different.
dekhn 1 day ago|||
I think it's time to recognize that copyleft as an idea is not great and LGPL makes the license even worse. I want licenses that don't have a core philosophy that attempts to overturn existing copyright.
jeremyjh 1 day ago||||
Sudo is already MIT. What are you concerned about here? Why hasn't it already happened?
criemen 1 day ago||||
Well, in the AI-powered future, you can reverse engineer and patch about anything without the source, too. That's not an argument against the GPL, but everything you can download is now effectively source-available for a modest fee to an inference provider.
thesuperbigfrog 1 day ago||||
> That is the problem. MIT isn't GPL. In our new AI powered future, we want the source so we can fix it ourselves.

GPL would be ideal, MIT is okay, but in our new AI-powered future, we may not even need the source code:

https://bramble-apps.github.io/

Maybe all software will become open source or free software?

lakeviewterrace 1 day ago||||
This is by design.

They are slow-rolling the cancellation of Stallman's connection to the OS because their first attempt failed.

In 10 years, no one will have heard of GNU after all components have been replaced with corporate clones.

tomkarho 1 day ago|||
I find it hard to believe that all of this movement is because of Stallman. That seems so... petty.
fwip 1 day ago|||
Less Stallman and more the GPL. Companies hate it.
tomkarho 1 day ago||
I can see that. I've been part of a conversation where GPL is treated like the son of satan because it requires giving back and no one seems to agree on the scope or what the license actually demands. So legal goes apeshit and management shits bricks because they might have to share some code.
pantalaimon 1 day ago||||
GPLv3 is incompatible with embedded (Ubuntu Core) use cases
direwolf20 1 day ago||
no it isn't. Please don't spread FUD.
whoanoway 1 day ago||
[dead]
7e 1 day ago|||
Open source predates Stallman. His mental illnesses are a distraction from it, though.
boorbat 1 day ago|||
Stallman is being canceled because an MIT licensed program (sudo) is being replaced with a different MIT licensed program (sudo-rs)?
Vaushite 3 days ago||||
Licensing is downstream of software existing. The person who actually writes software gets to make the license. If you want a GPL one you have to make that.
bikvfeee 2 days ago||
It already exists.
warkdarrior 1 day ago|||
The default sudo (written in C) has an MIT license: https://www.sudo.ws/about/license/

Where is this GPL-licensed sudo that already exists?

Vaushite 2 days ago||||
Is it better?
cpach 1 day ago||||
Where…?
Shish2k 1 day ago|||
This conversation is very reminiscent of

"if you want people to use open chat protocols, you need to make user-friendly clients"

"we already have irssi"

the vast majority of people abandon IRC for discord

shocked Pikachu face from the free software community

nsoam 1 day ago||
It’s much worse: they created Matrix.
jeremyjh 1 day ago||||
What is the GPL software that is being replaced?
pantalaimon 1 day ago||
Coreutils
collinfunk 1 day ago||
We still maintain GNU Coreutils upstream, FWIW. I had to beg Canonical to address bug reports on the version that they distribute, which was ignored after the switch to uutils.

For that reason I suggest switching to any other distribution. Of the ones I have interacted with, I have had good experiences with all of them.

thrill 1 day ago||
Guix?
collinfunk 20 hours ago||
It has always seemed interesting to me, but I haven't gotten a chance to give it any substantial use, yet.
iknowstuff 1 day ago||||
Hardly relevant to TFA though
ForHackernews 1 day ago|||
Maybe the GPL people need to get with the times, then. LLVM exists largely because the GCC people were so obstinate. I'm a big believer in copyleft software, but it only works if people want to use your software with their projects.
ahartmetz 1 day ago|||
LLVM was supposed to be a virtual machine initially, hence the (original) name: Low-level virtual machine. The direction that it took, and especially the development of Clang: that was at least partially because of GCC's intentional anti-modularity.
jcranmer 1 day ago||
LLVM was never meant to be a virtual machine, which is the reason why its name was ultimately changed. (It's closer to an instantiation of the C abstract machine, which is where the "virtual machine" came from.)
ahartmetz 1 day ago||
AFAIK, being a flexible JIT compiler (for C-like languages, not Java) was a large part of the idea. The pivot to static compilation only happened "accidentally" in the first few years until the by then pretty broken JIT part was officially removed. Correct me if I'm wrong.
jcranmer 20 hours ago||
You're wrong. See e.g. https://llvm.org/pubs/2002-12-LattnerMSThesis.pdf, the original thesis proposing LLVM.

LLVM was always trying to pitch itself as a whole-lifetime optimization system. In practice, this meant focusing on LTO and PGO compilation modes. The idea of runtime or idle-time optimization were always kind of a next-todo step rather than anything actually implemented.

dofm 1 day ago|||
Ref: https://lists.gnu.org/archive/html/emacs-devel/2015-02/msg00...
graemep 1 day ago|||
If you read the article you would know this is a regression, not an improvement. Stuff breaking silently is never good. If you change config options error when you read the config file that no longer works.
jeroenhd 1 day ago||
It's not a regression, it's a documented, deliberate decision to change the behaviour of the program.

    The sudo-rs 'sudoers' manual page suggests that this is a deliberate decision, which makes the Rust version of sudo very definitely not a compatible implementation. The manual page has a nice full section and description of 'Wildcards', and then at the end casually says:
    
    > Wildcards in command line arguments are not supported—using these in original versions of sudo was usually a sign of mis-configuration and consequently sudo-rs simply forbids using them. The only supported use is ‘*’ as the final argument to indicate “zero or more subsequent arguments as noted above.
The manual should probably drop the wildcards section it's not implementing anyway, though.
throw0101d 1 day ago|||
> It's not a regression, it's a documented, deliberate decision to change the behaviour of the program.

If I install and setup and run "sudo" I expect it to work like sudo.

If you want your program to not work like sudo do not call it "sudo". This is what the OpenBSD folks did with doas.

POLA.

(It's fine if they want it to work differently than sudo; not fine that they called it "sudo".)

graemep 1 day ago||||
Maybe a deliberate decision in sudo-rs but its a silent failure when Ubuntu is upgraded so its a regression in Ubuntu.
dmitrygr 1 day ago|||
And when one upgrades and OS and something that worked since 1980 stops working, what do we call that, class?

That’s right. “A regression”

Whether it was accidental or purposeful changes nothing.

wavemode 1 day ago|||
I don't understand that logic. If it's fine for sudo-rs to have different behavior from sudo, why can't it also just have a different executable name? So that people who are expecting traditional sudo will get "executable not found" instead of having subtle silent problems.
simon_void 1 day ago||
according to https://itsfoss.com/news/ubuntu-25-10-sudo-rs/:

"Canonical's Jon Seager mentions that the sudo-rs developers are collaborating with Todd Miller, the original maintainer of sudo, and to think of sudo-rs as a "handshake across generations of secure systems".

He also added that sudo-rs is not expected to bring over all the features of sudo, as the devs are taking a "less is more" approach, excluding features that are too niche or outdated."

So sudo.rs drops some features because "less is more", but it's still called "sudo" because by working together with the original maintainer they capture the spirit of the original, a "sudo 2.0" so to speak.

1718627440 1 hour ago|||
Interfaces are not supposed to change while keeping "the spirit". I don't care if you keep "the spirit" or not, if you change an interface, please change the name or at least the version.
wavemode 23 hours ago||||
Even if this change had been in the C version of sudo, I would expect deprecation warnings before the change, followed by error messages after the change, rather than silent failure. That's just good maintainership.
throw0101c 1 day ago|||
> So sudo.rs drops some features because "less is more", but it's still called "sudo" because by working together with the original maintainer they capture the spirit of the original, a "sudo 2.0" so to speak.

Except when the change of features are seemingly arbitrary. As the article points out when it comes to regexes, the following is not allowed:

    /usr/sbin/exim -bp[acru]
but the following would be

    /usr/sbin/exim *
So, as the author notes:

> 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 […]

If the goal is a safer system: WTF?

Grimeton 1 day ago|||
You can perfectly write a replacement with advanced features w/o breaking anything. Best example breadth-first implementation of find. It mostly exists because find can't handle statx and so doesn't have access to all file properties like their birthtime.

It's 100% compatible to find plus some additional features. That's why it mentions find's manual for the basics and only points out what was added on top in its own manual.

pjmlp 1 day ago|||
UNIX creators moved on from their creations into Plan 9, Alef, Inferno, Limbo, Go.

Meanwhile FOSS OSes keep cloning UNIX.

However Ubuntu's approach to rewrite proven CLI tools into cool new language wasn't necessarily the best idea to do another RIIR.

cowlevel 1 day ago|||
It's treating command patterns in the sudoers file as literals when the previous one treated them as regexes.
operator-name 1 day ago|||
Evolving tools or their defaults should be lead to silent and unexpected experiences on stable distros.

A transition period with warnings and logs, changes and key differences at the top of the man docs and helpers to find, migrate or at least fail loudly. These are all important bring everyone along, and vital to transition a critical tool like sudo.

lakeviewterrace 1 day ago|||
> Tools have to be allowed to evolve.

Great, then give it a new name.

> At least the command is still called sudo or run0

You're happy it's a knockoff?

> would have been a much more breaking change

All these "Rust rewrite" projects are creating breaking changes all over the place, whilst solving no real problems. They can shove them up their arses.

novafunc 1 day ago|||
It’s not a knockoff. They have a friendly relationship with the original creator of sudo. And their work helps uncover bugs of the original sudo so they send fixes upstream.
Twirrim 1 day ago|||
Friendly relationship or not, the end user experience is that something that was working, no longer is, because it's not feature compatible. This is despite it being used to replace it under the same name. If it had been `runas` or anything else it'd be fine.

There's a strong principle in upstream Linux kernel about "You don't break userspace"[1], that I really wish more folks would get into their heads, but most especially a variant "You don't subtly break userspace".

If you're going to replace an existing binary, under the same name, you need to be like-for-like in commands, even if your guts are completely different. Very few people give a damn about how it's actually implemented, just does it do what they need it to do.

If you want to do things differently, do it under a different name and have it be an explicit break for an end user by not shipping with the original and let people choose to install it if they really don't want the new thing. Breaking things subtly is completely unacceptable.

[1] espoused really clearly, as part of an infamous rant https://lore.kernel.org/all/CA+55aFy98A+LJK4+GWMcbzaa1zsPBRo...

Grimeton 1 day ago||
Yeah "You don't break userspace" refers to the kernel <-> userspace interface (libc) because that's the smallest common denominator and the reason why stuff like snap works.

Besides that userspace has been incompatible between distros for at least 30 years because everyone has that one special patch the library needs on their distro that isn't accepted upstream and breaks things beyond repair.

This was already the case in the 1990s when Applixware shipped 30 different versions of their software on one CD-Rom because it should run on different distros and their versions.

And back then there weren't that many, mostly Red Hat, SuSE and Debian.

lakeviewterrace 1 day ago|||
All the time wasted on navel-gazing could have been spent auditing and fixing the original projects' code.

Starting anew WILL introduce new bugs. This is a statistical certainty.

Most Rust rewrites are justified upon imaginary boogeymen. The complex security nightmares of 'cp' 'ls' and 'rm' were begging for a new design.

danielheath 1 day ago|||
One would never return “*” to signal an error in rust code (or any language with an option type).
Scoring6931 1 day ago|||
Nothing precludes error handling in C. It's on the programmers to actually do it.
danielheath 11 hours ago|||
If you forget to do it in C, everything still looks superficially right.

If you forget to do it in rust (or zig, or typescript, or any of the hundreds of languages with option types), your code doesn't compile.

Nothing precludes "simply do not fall off" when working off heights, either, but there's a reason safety harnesses are mandatory when working at heights in most of the developed world.

Ygg2 1 day ago|||
Nothing precludes having legible programs in Brainfuck[1]. It's on programmers to actually do it.

[1] Other than the language itself.

Same goes for C, it's reliance on weakish type system is what causes its numerous fuckups.

mxey 21 hours ago||||
Imagine every Rust program just calling unwrap on this result, and therefore the Rust library deciding to just never return an error. That’s analogous to what happened here.
lakeviewterrace 1 day ago|||
[flagged]
saghm 1 day ago||||
If your goal is to convince people that you're right, describing things as "time wasted on navel-gazing" is not the type of thing that will win people over. It comes across as arrogant and entitled, as if the world would be better if everyone would just recognize you're smarter and therefore should do whatever you want.

If you're just pissed and trying to blow off steam, maybe this choice of words will help a bit, but because of the issues described above, it also might just cause a bunch of people to react negatively towards you and therefore make your mood worse.

If you're just commenting here as something to reference in the future for when you expect to say "I told you so!" to everyone, I guess this is a reasonable way of doing it. It still doesn't really seem like there's much need for phrasing it like that though; people still might look back and think that you're right but still sound arrogant and entitled.

lakeviewterrace 1 day ago||
[flagged]
aeonik 1 day ago|||
He's your dad? You have a pretty cool dad.
saghm 1 day ago|||
I'm sorry that my suggestion that people comment on this forum in more constructive ways bothers you
bothers 1 day ago||
[dead]
UqWBcuFx6NV4r 1 day ago|||
I can’t stress this enough: there are—rightfully—a whole bunch of people that simply do not want to work on C codebases, because in the typical case, working wIth C sucks. Your outbursts are never going to change this, no matter how petulant or vitriolic. Amazing how a group of people has made “[aversion to{ languages with far fewer footguns” into some sort of culture war issue. Sorry that the industry is forcing you to read a book or whatever.
fukaiall 1 day ago|||
Rust is a very good language, but some dogmatic people hyped in the language are ruining the reputation of the language.
lakeviewterrace 1 day ago|||
agree
simonask 1 day ago|||
Who, exactly?

Every time Rust is mentioned, these mythical zealots are mentioned. Yet somehow they never seem to actually show up. Most elusive!

Are they with us in this room right now?

bothers 1 day ago||
[dead]
serf 1 day 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.

the other half of the problems are from people who think redesigning the wheel is a good idea and try to wedge conformity-breaking tools into the thing.

mtmail 1 day ago|||
> TFA blocks me with no workaround

I hope this copy works https://pastebin.com/mxAZyQJL (I was surprised the website even blocked archive.ph with "suspicious old browser")

jms703 1 day ago|||
Yes, they do. Put them into your stable server distribution AFTER they are complete.
dmitrygr 1 day ago|||
Why? Do knives need to evolve? Screwdrivers? Hammers? Can’t good be good?
dwattttt 1 day ago|||
I don't know the history of knives and hammers, but screwdrivers _have_ evolved, in backwards incompatible ways.

Slot screws date back to the ~15th century, Phillips to the 1930s, and Torx to the 60s. They all brought improvements.

throw0101c 1 day ago||
> Slot screws date back to the ~15th century, Phillips to the 1930s, and Torx to the 60s. They all brought improvements.

But Torx does not call itself "Phillips": you know the difference and plan accordingly.

Calling something "sudo" and then not working like sudo is the problem.

Sudo used to be in OpenBSD, but they found it too troublesome (at least as a default) so they created something else / 'better' for their needs: they didn't call it "sudo", they called it "doas", because it did not work the same way as sudo.

dwattttt 19 hours ago||
I dunno, all those arguments work both ways. They're both called screws as well, they have a functional interface that's the same on both, they were all changes that broke backwards compatibility in the service of improving their purpose, and if you got a product that includes "screws" you don't know which one you're getting.
tmtvl 1 day ago||||
You may still be using flint-knapped knives, but the world as a whole moved on to bronze, then iron, and, more recently, steel. Hammers evolved as well, with more ergonomic grips being invented to reduce repetitive strain injuries, as well as various heads which are better suited to different tasks (like the claw hammer or ball-peen hammer).
fluidcruft 1 day ago|||
Look at this guy still using flint
doublerabbit 1 day ago|||
Doas is already a replacement to sudo especially in the OpenBSD world.

You can install it in replacement as sudo on Linux.

direwolf20 1 day ago||
Did you mean changing it to doas or run0 would be breaking?
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.
throw0101c 1 day ago|
> Sudoers glob expressions are a horrible footgun and I have little empathy for anyone complaining about their removal […]

Except sudo-rs did not remove them.

As the article points out when it comes to regexes, the following is not allowed:

    /usr/sbin/exim -bp[acru]
but the following would be:

    /usr/sbin/exim *
As the author notes:

>> Wildcards in command line arguments are not supported—using these in original versions of sudo was usually a sign of mis-configuration and consequently sudo-rs simply forbids using them. The only supported use is ‘’ as the final argument to indicate “zero or more subsequent arguments as noted above.*

> 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 […]

If the goal is a safer system: WTF?

jamiesonbecker 1 day 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.

randomblock1 1 day 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.
throw0101c 1 day ago||
> This is trivial to fix, at least for you.

Or one could just install (real) sudo instead of (fake) sudo.

Installing real sudo is something I will have to do when (if) we move to 26.04 because we need LDAP functionality, and fake sudo does not provide that.

dangistan202611 1 day ago|||
Before you know it, you will be needing a workaround for every replacement tool you use in Ubuntu. This is what makes it unacceptable.
foxhill 1 day ago||
forgive me if i’m wrong. i don’t think you’ve ever had to administer more than a handful of machines. your “fix” is irrelevant.

> That being said there definitely should be an automated way to check for incompatibilities between normal and rust sudo.

yes. it’s called the bare minimum.

9dev 1 day ago|||
I do manage more than a handful of machines, and that means using automation tools and IaC as much as possible, while avoiding humans using shells as much as possible. I’m struggling to enumerate a lot of use cases for a bespoke sudo configuration that shouldn’t be a proper setup.
cyberax 1 day ago|||
If you're using `sudo` for something beyond trivial `reboot`, you're doing something VERY wrong.
dbt00 1 day ago|||
If you're not in the user community of a tool, having an opinion on whether or not the replacement should work doesn't seem like it should matter to you at all.
cyberax 1 day ago||
The complexity of tools and the associated danger absolutely matters.
baggy_trough 1 day ago||||
What are you doing wrong?
unrented7977 1 day ago|||
Like.... apt-get?
zenoprax 1 day ago|||
`sudo apt install my-custom-backdoor-script.deb`

With NOPASSWD you would also invite someone pulling a `.deb` via `curl` as part of a supply chain attack in a some non-descript NPM package via a git hook or something.

cyberax 1 day ago|||
So you want users to be able to install any package? So that the attack surface is now literally all the Debian archive?

Yeah, no.

You either use `sudo` when you want full root access or for something completely trivial.

BHSPitMonkey 1 day ago||
My sudoers is set up to let me run update and upgrade (with no args) without a challenge, but not install.
cyberax 1 day ago||
I'm pretty sure I can b0rk the system by interrupting the upgrade in an inconsistent state. Or maybe inject some fun environment variables into the `apt-get` context. And I think you can launch the shell during conflict resolution for conffiles, giving you instant full access to the whole system?

A more robust design is to have a systemd one-shot unit that users can activate (via a trigger file or sudo).

So my point still stands and your example illustrates it perfectly. Either you use `sudo` for full root access or for something entirely trivial.

cowlevel 1 day 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 1 day 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.

Grimeton 1 day ago||
>Seems in Linux land, compatibly, even between distros, is going out the window. :(

That happened 30 years ago. Userland is not compatible. Too many distro related patchese, especially on Debian/Ubuntu.

The only common denominator is libc because daddy Torvalds doesn't allow the kids to break it. That's why things like snap work but come with a full blown os stack inside.

lakeviewterrace 1 day ago||
> If it was up to me, I would standardize on OpenBSD's doas

doas is ~ 1k LOC of easy to understand C code. It can quite literally be made 100% bug-free.

But it was never about that, never about finding a better replacement. It's about religious proselytizing of their chosen language.

ikmckenz 1 day ago||
If they were going to make breaking changes anyways, they should have just switched to the much simpler `doas`
bravetraveler 1 day ago|
Ah, but then you don't get to skip editing docs, proclaim walking on a tightrope, or make a new TiVo!
markhahn 1 day ago||
I prefer to have sudo uninstalled.
proneb1rd 1 day ago|
Strange that such issues haven’t been probed with ai. It’s good st finding regressions
More comments...