To be fair: The sudo-rs project pretty clearly states that it does not aim to cover every feature that sudo has. Their README says so right in the first few lines.
Sudo is under a permissive license, just like the rust port. I fail to see what the license problem is in this case.
The issue I have with the project is that they do nothing to ease transition. e.g. They don't support requiretty and that is good IMHO because that option was never dependable. However instead of parsing it and ignoring it (perhaps with a warning) they instead break on it. If the critique of the option is that it wasn't really doing much then ignoring it won't do much harm. But, much worse, is that they also break on !requiretty. So I'm specifically trying to turn off a feature they don't support and they still break.
Maybe that's not something the upstream project wants to take on but it seems like the kind of patch I want from a vendor like Canonical who are supposed to help me transition between releases smoothly.
I don't think any of this is on the maintainers of sudo-rs per se. It's Canonical's problem to deal with the consequences of shipping a sudo implementation differing substantially from the existing sudo, similarly to how it's Alpine's problem to deal with the effects of using musl as the system libc. Moreso in fact, as Alpine did not previously change the system libc underneath distro users.
My point was sudo-rs works as designed. It might not be a great idea to use it in ubuntu, but the project can probably not do too much about that:-)
I guess I am a bit extreme here, but IMHO a systemd-based distribution should not ship sudo at all anymore -- or only as a wrapper script around run0 and without any promise of compatibility. But then I am just a user/dev on Linux systems and do not need to admin a ton of machines, so I understand that this is probably not going to happen anytime soon :-)
One might go further and insist that if you object to the systemd on the basis of its complexity or ecosystem effects, you would probably also be better served by doas, leaving little reason to use sudo except inertia.
sudo run0 is a perfectly valid command prefix. Moreso since run0 is not a sudo replacement (and doesn't elevate you to root).
run0 can internally invoke polkit (it is not alone here) and there's no reason it couldn't also invoke sudo or doas or similar if the authors desire. But that is polkit being a sudo replacement, not run0.
And that means you have to configure an entirely different subsystem with your desired access lists. And not everyone likes polkit to begin with (though the gripes are less these days now that polkit no longer requires spidermonkey).
or only as a wrapper script around run0 and without any promise of compatibility
That would defeat the purpose of having a sudo command so thoroughly that one must wonder why even suggest it, aside for trying to see if it upsets anyone.
This is even a comment on an article complaining about replacing programs with identically named binaries that don't behave the same, so replacing a binary with one that isn't even attempting in the most superficial way to be a drop-in replacement is very much on topic... as a thing which will make nobody happy.
Just use run0 if you like it?
And maybe reluctantly let people install nondefault packages like sudo if they really demand to do so -- why must it be so desperately important to stop packaging sudo at all (and certainly it's impossible to package it if the init system conflicts with it).
I am letting people installnwhatever they want. I just thinkmit makes no sense whatsoever to have more than one way to become root in a default install... and run0 is already set due to being part of systemd and avoids suid binaries and environment problems.
You said that distros should stop shipping it "at all". Implying but not explicitly saying that this isn't about the default install, because the words "at all" naturally read as "at all" rather than "by default".
You said that the default install (perhaps packaged in the systemd package, which cannot be uninstalled?) should ship a sudo command that is a wrapper around run0. Unambiguously making it impossible to have the same file installed by a different package instead (since you cannot uninstall systemd). In theory this can kind of be worked around by adding and maintaining multiple extra packages -- two to provide the alternative symlinks for each provider, a third to depend on one or the other of the first two -- but the cost in engineering time is nontrivial and whether or not it even works at all is very package manager dependent and certainly not something all distros can do (but you insisted all distros should do. So I conclude my first reading was correct and this is not about the default install.
Many distros already don't include sudo in the default install, because including tons of unwanted software in the default install is just dead weight. The ones that do include unwanted software also have a tendency to assume polkit is enough because polkit is graphical and they don't target command line users. So "distros should stop doing XYZ at all" would be a funny thing to say, if it meant "stop doing it by default" and most distros already weren't.
If that's what you meant anyway them apologies for the confusion, but it's still a waste of engineering effort.
With this in mind, it's puzzling to me why Canonical would replace standard sudo with sudo-rs. My understanding of the change is that Ubuntu's "sudo" command now behaves in meaningfully different ways that it did in the past. This kind of silent changes does not seem desirable, especially not for a program like sudo.
I've never really understood people's desire to use Ubuntu on a server, as it started as and in my eyes has always been a GUI-first distro for end-user desktop usage, aimed more at the computer novice than technical users.
In the light of Ubuntu as a desktop OS, it makes a ton of sense to replace sudo with sudo-rs because it's mostly used as a way for the one desktop user on the system to run a command as root without typing a password.
Of course they have an official "Ubuntu server" offering, so perhaps my impression is outdated and simply wrong and uninformed?
One good reason to use Ubuntu on the server is that EOL is clearly known. Debian is supported until the next version, whenever that happens; Ubuntu LTS is released every other April and supported for five years. Major version distro upgrades can turn into major rabbitholes and in work context I like being able to roadmap that kind of work.
I mean that's technically true but except for +/1 month they have been on a 2y summer release cycle since 2005. (Boy do I feel old now because I remember the sarge delay memes...)
Or do you really need to know it exact to the day? We always tried to have migrated off the last version of Ubuntu several months before that.
Debian is supported until the next version, whenever that happens
That is not correct. Previously, a Debian major release was supported until 1 year after the release of the next. But they introduced LTS like a decade ago and since then every Debian release is supported for at least 5 years.
Debian does not release on an exact schedule, but it freezes on schedule, and a new release comes out about 2 years after the previous.
Meanwhile, 90% of the packages in Ubuntu are in the “universe” repository and receive no security updates whatsoever. Even for the parts of the archive that do receive security updates, they are usually slower than Debian.
I have migrated away but their LTS was a really good building block for only having to redo everything every 4 years. Debian hadn't really done LTS that well up until a few years ago (maybe 10 now?)
If I can trust https://endoflife.date/debian - Squeeze (released 2011) was the first one with >3y of support and they "Debian stale" meme was a bit more true than now.
this feels like conflating two goals of why you might want to rewrite something like this in rust.
memory safety (good motivator for rust specifically here)
cleaning up tech debt, learning lessons (not as rust specific)
if you’re naming yourself after an existing project and then tagging that language onto the name as the key differentiator, I feel like you’re implicitly promising not to go too crazy with that second goal. otherwise, why not pick a new name? there are people who might find a new thing that isn’t compatible interesting, but there are way more who will be tolerant of a thing that is just drop in compatible.
I wonder how this could’ve gone if ubuntu had waited until 26.10 to swap in these rust equivalents and then used some of the newer models that we didn’t have last year to do more compatibility testing up front long before an lts release..
To be fair, I did check sudo’s license before I saw your comment, my first thought was “oh, they’re doing another licensewash I guess”. Not the case this time.
Agreed. If you’re distributing a binary, I really don’t see the point of naming a project after the language it’s written in. The right naming precedent would be syslog-ng, which clearly flags the intention to clean house.
I think it there is a time for it, but pretty much only if you’re doing it as a direct port of an existing thing written in a different language with high compatibility expectations, like how the go rewrite of the typescript compiler was called tsgo initially.
Definitely this. Refactors and behavior changes should be interleaved if a project has significant dependents, ideally with a clear release schedule with ample deprecation warnings. Anything else is poor maintenance.
The initial goal of Ubuntu was "Debian for newbies".
Now, let’s be honest: keeping sane on Ubuntu is a nightmare. I installed Ubuntu on my daughter laptop because I thought she would have less problem than Debian. It is a straight LTS Ubuntu. No strange configuration, I even let Snap: well, it is a nightmare.
By default, LibreOffice doesn’t allow her to save documents besides in very strange folders (snap jails). Every upgrade break stuff.
It just not worth it to use Ubuntu. There’s absolutely 0 benefits from using Ubuntu over Debian those days.
Let be honest: Ubuntu was needed 20 years ago. It did a very good job. It improved the ecosystem. But, now, it is just a corporate pile of slimy smelly shit which beg us to put an end to its suffering.
The problem is not specifically that they might want to use them, but rather they may depend on scripts, or other programs that do rely on this behaviour.
Yes, agree. Modern out of box Debian experience with GNOME is pretty good, we really don't need anything special for newbies. Proof, my daughter has been using it as her primary computer for the past one year and even knows how to use the terminal for a few basic things. (mentioned terminal because I see most gen-z folks at work using terminal via vscode).
It annoys me so much that they removed -E. I used that all the time. By far the easiest way to run a graphical tool as root is with sudo -E. I don't know what the replacement is even meant to be; are you meant to type out the list of DISPLAY, WAYLAND_DISPLAY, XDG_RUNTIME_DIR, and whatever else I'm forgetting?
Look into Systemd's run0, the motivation for it is basically that exact use case!
[run0] is very useful when you need to run something with privileges but still want all created files and directories to be owned by your current user.
[further down the thread...]
Instead of changing to root, we keep the current uid/gid and instead give it full ambient capabilities
It seems like the intended workflow is to allow list env vars using env_keep in your sudoers file. I tend to agree that allow listing is a much saner default than deny listing.
Does that then mean that the sudo-rs's official position is that Ubuntu should've provided a list of env vars with env_keep?
Because normal users shouldn't be expected to know the ins and out of which exact env vars they need to use to run a program as root. It differs between distros and between desktop environments, and there are many environment variables which you should expose to graphical applications but which many applications will happen to work without. And telling non-technical users that they ought to edit their sudoers file seems like a recipe for disaster in general.
Of all the possible binaries you can choose to break compatibility with, sudo has got to be one of the most important to lamppost the breaking changes on.
Sudo-rs is being actively maintained; features you might expect from original sudo may still be unimplemented or not planned.
Further down, in the section "Differences from original sudo":
• To prevent a common configuration mistake in the sudoers file, wildcards are only supported in argument positions for a command as the final argument. E.g., %sudoers ALL = /sbin/fsck* will allow sudo fsck and sudo fsck_exfat as expected, and %sudoers ALL = /sbin/service ntp * will allow a user to control the ntp service. but %sudoers ALL = /bin/rm *.txt will not allow an operator to run sudo rm README.txt|, nor |sudo rm -rf /home .txt, as with original sudo.
If you find a common use case for original sudo missing, please create a feature request for it in our issue tracker.
To me it reads that there's a bug report for only supporting * as the trailing pattern. Just that change would have made the original use case work:
I haven't filed a bug because we aren't Canonical's free debugging resource
Which feels to me always as "I want to vent my frustration, not a solution". I encounter a lot of people on that frame of mind, because I seek them out to file tickets to the toolchain I maintain. They are generally not receptive to trying to find a fix with their involvement or requests to file tickets, but often enough they are that it is worth it to remind people that filing tickets is how developers find out about things that don't work. Many people have been burned by bad issue trackers and worse reception to filing tickets, so it is an attempt to fight that. Since starting that I have changed a lot of how I deal with my own frustration. I'd like to think that I am now more constructive.
These is an open source project. If filing a ticket is as easy as posting on social media, and you don't, you're not sticking it to the man, you're sticking it to the other users of that software.
Which feels to me always as "I want to vent my frustration, not a solution". I encounter a lot of people on that frame of mind, because I seek them out to file tickets to the toolchain I maintain. [...]
These is an open source project. If filing a ticket is as easy as posting on social media, and you don't, you're not sticking it to the man, you're sticking it to the other users of that software.
I dunno, I think that as arguments go, "Canonical is a commercial company, embroiled in the Enshittification movement, and I already assume their intentions are bad and am in the long-term process of migrating away from their distro", is exactly the right shape of argument to rationalize not reporting bugs to them (and also not caring if other users of the software suffer -- "they can also choose to stop using the bad-intentioned distro").
You appear to be operating under the assumption that the blog post author wants sudo-rs to work, but the blog post author clearly feels indignant that software he does not want to use and did not ask to install was non-consensually installed behind his back on his system. Why does anyone have to submit bug reports to improve software non-consensually installed on their system behind their back?
Why is it not okay for people to vent their frustration about software being non-consensually installed on their system behind their back?
Also, this blog post is very informative to tell you : "Ubuntu is so deep into enshitification that it is currently breaking decade old piece of infrastructure we rely on".
That’s very useful !
I don’t care myself about that very specific sudo-rs feature. But I’m experienced enough to read that post thinking "iif they broke that, there’s a 100% probability that they will break something I care about in the future."
If you read that post being about a sudo feature, you totally miss it is trying to convey.
And I agree with not reporting bug: if a company broke, on purpose, something that was perfectly fine for decades, you don’t waste your time trying tor argue with them about it.
No, he’s venting because he had to find a solution (getting the sudo he actually wanted installed in active opposition to defaults) to a problem created by someone else on his unwilling behalf (installing a sudo replacement that doesn’t work in place of the real thing he needs).
(Had that other thing been called anything else than sudo then the problem wouldn’t have been a problem at all. It would have just amounted to “the thing I want is no longer in the default install” which no one is going to make a fuss about. Grumble for a moment about it maybe, but no more than that.)
Original sudo had vulnerabilities not just from C issues, but also from logic bugs in features it supports. Not implementing all of the features is another way to mitigate the risk.
Due to an ongoing attack, you may need to change the "User Agent Brand Masking" setting so that your Vivaldi identifies itself as Vivaldi, instead of Google Chrome. This applies to even the current version of Vivaldi.
Honestly, if I were running my own bot blocker, I'd probably have wound up in the same situation. Automatically scrape some kind of info on what the newest Chrome user agent string is for each release channel and consider it an impersonator to block if it doesn't match any of them with a week or so of margin for error.
As is my qt-webengine based browser that uses the Qt release from eight days ago. As is my Firefox 158.0 that released twenty-one days ago (I'll have to see if it works on 159.0 from seven days ago, or if that's still too out-of-date and suspicious).
I've been moving my servers off ubuntu and onto freebsd, for similar issues to this. Ubuntu seems more interested in edging me towards user-pays instead of user-contributes :(
I don't want to find out what happens in the long term if I remove 'ubuntu-minimal'.
Ha ha ha. It certainly used to wipe out the installation. Without an easy way to bring it back. Seems like a ridiculous way to configure an install system - deliberate?
hunger | 6 days ago
To be fair: The sudo-rs project pretty clearly states that it does not aim to cover every feature that sudo has. Their README says so right in the first few lines.
Sudo is under a permissive license, just like the rust port. I fail to see what the license problem is in this case.
dvogel | 6 days ago
The issue I have with the project is that they do nothing to ease transition. e.g. They don't support
requirettyand that is good IMHO because that option was never dependable. However instead of parsing it and ignoring it (perhaps with a warning) they instead break on it. If the critique of the option is that it wasn't really doing much then ignoring it won't do much harm. But, much worse, is that they also break on!requiretty. So I'm specifically trying to turn off a feature they don't support and they still break.Maybe that's not something the upstream project wants to take on but it seems like the kind of patch I want from a vendor like Canonical who are supposed to help me transition between releases smoothly.
ceph | 5 days ago
I don't think any of this is on the maintainers of sudo-rs per se. It's Canonical's problem to deal with the consequences of shipping a sudo implementation differing substantially from the existing sudo, similarly to how it's Alpine's problem to deal with the effects of using musl as the system libc. Moreso in fact, as Alpine did not previously change the system libc underneath distro users.
invlpg | 5 days ago
Back in 2014, Alpine switched from uClibc to musl.
ceph | 5 days ago
That’ll teach me to make unfounded assertions - I would update the comment, but I forgot that there’s a limited edit window…
hunger | 5 days ago
My point was sudo-rs works as designed. It might not be a great idea to use it in ubuntu, but the project can probably not do too much about that:-)
I guess I am a bit extreme here, but IMHO a systemd-based distribution should not ship sudo at all anymore -- or only as a wrapper script around run0 and without any promise of compatibility. But then I am just a user/dev on Linux systems and do not need to admin a ton of machines, so I understand that this is probably not going to happen anytime soon :-)
ceph | 5 days ago
One might go further and insist that if you object to the systemd on the basis of its complexity or ecosystem effects, you would probably also be better served by
doas, leaving little reason to use sudo except inertia.eschwartz | 5 days ago
sudo run0is a perfectly valid command prefix. Moreso since run0 is not a sudo replacement (and doesn't elevate you to root).run0 can internally invoke polkit (it is not alone here) and there's no reason it couldn't also invoke sudo or doas or similar if the authors desire. But that is polkit being a sudo replacement, not run0.
And that means you have to configure an entirely different subsystem with your desired access lists. And not everyone likes polkit to begin with (though the gripes are less these days now that polkit no longer requires spidermonkey).
That would defeat the purpose of having a
sudocommand so thoroughly that one must wonder why even suggest it, aside for trying to see if it upsets anyone.This is even a comment on an article complaining about replacing programs with identically named binaries that don't behave the same, so replacing a binary with one that isn't even attempting in the most superficial way to be a drop-in replacement is very much on topic... as a thing which will make nobody happy.
Just use run0 if you like it?
And maybe reluctantly let people install nondefault packages like sudo if they really demand to do so -- why must it be so desperately important to stop packaging sudo at all (and certainly it's impossible to package it if the init system conflicts with it).
hunger | 5 days ago
I am letting people installnwhatever they want. I just thinkmit makes no sense whatsoever to have more than one way to become root in a default install... and run0 is already set due to being part of systemd and avoids suid binaries and environment problems.
eschwartz | 5 days ago
You said that distros should stop shipping it "at all". Implying but not explicitly saying that this isn't about the default install, because the words "at all" naturally read as "at all" rather than "by default".
You said that the default install (perhaps packaged in the systemd package, which cannot be uninstalled?) should ship a sudo command that is a wrapper around run0. Unambiguously making it impossible to have the same file installed by a different package instead (since you cannot uninstall systemd). In theory this can kind of be worked around by adding and maintaining multiple extra packages -- two to provide the alternative symlinks for each provider, a third to depend on one or the other of the first two -- but the cost in engineering time is nontrivial and whether or not it even works at all is very package manager dependent and certainly not something all distros can do (but you insisted all distros should do. So I conclude my first reading was correct and this is not about the default install.
Many distros already don't include sudo in the default install, because including tons of unwanted software in the default install is just dead weight. The ones that do include unwanted software also have a tendency to assume polkit is enough because polkit is graphical and they don't target command line users. So "distros should stop doing XYZ at all" would be a funny thing to say, if it meant "stop doing it by default" and most distros already weren't.
If that's what you meant anyway them apologies for the confusion, but it's still a waste of engineering effort.
thasso | 5 days ago
With this in mind, it's puzzling to me why Canonical would replace standard sudo with sudo-rs. My understanding of the change is that Ubuntu's "sudo" command now behaves in meaningfully different ways that it did in the past. This kind of silent changes does not seem desirable, especially not for a program like sudo.
sjamaan | 5 days ago
I've never really understood people's desire to use Ubuntu on a server, as it started as and in my eyes has always been a GUI-first distro for end-user desktop usage, aimed more at the computer novice than technical users.
In the light of Ubuntu as a desktop OS, it makes a ton of sense to replace
sudowithsudo-rsbecause it's mostly used as a way for the one desktop user on the system to run a command as root without typing a password.Of course they have an official "Ubuntu server" offering, so perhaps my impression is outdated and simply wrong and uninformed?
Psentee | 5 days ago
One good reason to use Ubuntu on the server is that EOL is clearly known. Debian is supported until the next version, whenever that happens; Ubuntu LTS is released every other April and supported for five years. Major version distro upgrades can turn into major rabbitholes and in work context I like being able to roadmap that kind of work.
wink | 5 days ago
I mean that's technically true but except for +/1 month they have been on a 2y summer release cycle since 2005. (Boy do I feel old now because I remember the sarge delay memes...)
Or do you really need to know it exact to the day? We always tried to have migrated off the last version of Ubuntu several months before that.
mxey | 5 days ago
That is not correct. Previously, a Debian major release was supported until 1 year after the release of the next. But they introduced LTS like a decade ago and since then every Debian release is supported for at least 5 years.
Debian does not release on an exact schedule, but it freezes on schedule, and a new release comes out about 2 years after the previous.
Meanwhile, 90% of the packages in Ubuntu are in the “universe” repository and receive no security updates whatsoever. Even for the parts of the archive that do receive security updates, they are usually slower than Debian.
wink | 5 days ago
I have migrated away but their LTS was a really good building block for only having to redo everything every 4 years. Debian hadn't really done LTS that well up until a few years ago (maybe 10 now?)
If I can trust https://endoflife.date/debian - Squeeze (released 2011) was the first one with >3y of support and they "Debian stale" meme was a bit more true than now.
jfloren | 5 days ago
If they don't actually intend to make it feature complete with sudo, they should name it something else, like sudont, so we know.
lilac | 6 days ago
this feels like conflating two goals of why you might want to rewrite something like this in rust.
if you’re naming yourself after an existing project and then tagging that language onto the name as the key differentiator, I feel like you’re implicitly promising not to go too crazy with that second goal. otherwise, why not pick a new name? there are people who might find a new thing that isn’t compatible interesting, but there are way more who will be tolerant of a thing that is just drop in compatible.
I wonder how this could’ve gone if ubuntu had waited until 26.10 to swap in these rust equivalents and then used some of the newer models that we didn’t have last year to do more compatibility testing up front long before an lts release..
aggsol | 5 days ago
You missed one important goal. Corporate desire to replace GPL licensed tools with MIT licensed ones. For me this is the worst aspect.
Psentee | 5 days ago
sudo is BSD-licensed though
aggsol | 5 days ago
Ah, my bad. I was thinking of GNU coreutils.
Psentee | 5 days ago
To be fair, I did check sudo’s license before I saw your comment, my first thought was “oh, they’re doing another licensewash I guess”. Not the case this time.
wrs | 5 days ago
Agreed. If you’re distributing a binary, I really don’t see the point of naming a project after the language it’s written in. The right naming precedent would be
syslog-ng, which clearly flags the intention to clean house.lilac | 5 days ago
I think it there is a time for it, but pretty much only if you’re doing it as a direct port of an existing thing written in a different language with high compatibility expectations, like how the go rewrite of the typescript compiler was called tsgo initially.
frontsideair | 5 days ago
Definitely this. Refactors and behavior changes should be interleaved if a project has significant dependents, ideally with a clear release schedule with ample deprecation warnings. Anything else is poor maintenance.
ploum | 5 days ago
I’ve been part of Ubuntu since the very beginning (see https://ploum.net/2024-10-20-20years-linux-desktop-part1.html ).
The initial goal of Ubuntu was "Debian for newbies".
Now, let’s be honest: keeping sane on Ubuntu is a nightmare. I installed Ubuntu on my daughter laptop because I thought she would have less problem than Debian. It is a straight LTS Ubuntu. No strange configuration, I even let Snap: well, it is a nightmare.
By default, LibreOffice doesn’t allow her to save documents besides in very strange folders (snap jails). Every upgrade break stuff.
It just not worth it to use Ubuntu. There’s absolutely 0 benefits from using Ubuntu over Debian those days.
Let be honest: Ubuntu was needed 20 years ago. It did a very good job. It improved the ecosystem. But, now, it is just a corporate pile of slimy smelly shit which beg us to put an end to its suffering.
junot | 5 days ago
Are newbies expecting regular expressions to work in their /etc/sudoers.d exceptions?
ploum | 5 days ago
Newbies are expecting things not to break when clicking on "upgrade". Which this sudo thing do on some config.
Newbies are expecting to save LibreOffice files and find them back later (which Ubuntu is not capable of doing anymore).
junot | 5 days ago
mordae | 5 days ago
Newbies do expect online tutorials and guides to work.
thejammahimself | 5 days ago
The problem is not specifically that they might want to use them, but rather they may depend on scripts, or other programs that do rely on this behaviour.
vu3rdd | 5 days ago
Yes, agree. Modern out of box Debian experience with GNOME is pretty good, we really don't need anything special for newbies. Proof, my daughter has been using it as her primary computer for the past one year and even knows how to use the terminal for a few basic things. (mentioned terminal because I see most gen-z folks at work using terminal via vscode).
mort | 6 days ago
It annoys me so much that they removed
-E. I used that all the time. By far the easiest way to run a graphical tool as root is withsudo -E. I don't know what the replacement is even meant to be; are you meant to type out the list of DISPLAY, WAYLAND_DISPLAY, XDG_RUNTIME_DIR, and whatever else I'm forgetting?ThinkChaos | 5 days ago
Look into Systemd's
run0, the motivation for it is basically that exact use case!https://mastodon.social/@daandemeyer/115565105032166177
kiyurica | 5 days ago
I wonder why Ubuntu didn't outright switch to run0, the arguably more secure alternative to sudo
greg_loscombe | 5 days ago
Not invented here. Upstart, mir, *-rs, snap, etc etc etc. They are awful for 'whats happening in and around us.... nahhh'
mxey | 5 days ago
Exactly. If you do not care to be backwards compatible, why not go all the way and rip out the biggest security issue of sudo: the setuid binary.
ekuber | 6 days ago
It seems like the intended workflow is to allow list env vars using
env_keepin your sudoers file. I tend to agree that allow listing is a much saner default than deny listing.https://github.com/trifectatechfoundation/sudo-rs/issues/1299#issuecomment-3421511084
mort | 6 days ago
Does that then mean that the sudo-rs's official position is that Ubuntu should've provided a list of env vars with
env_keep?Because normal users shouldn't be expected to know the ins and out of which exact env vars they need to use to run a program as root. It differs between distros and between desktop environments, and there are many environment variables which you should expose to graphical applications but which many applications will happen to work without. And telling non-technical users that they ought to edit their sudoers file seems like a recipe for disaster in general.
ekuber | 6 days ago
I don't know if there is an official position (yet?), but that point was raised in the thread as one of the ways to go.
mjec | 6 days ago
If you really want the whole environment, you can do the following. You could even use an alias for it:
(The printf bit is ugly, but the easiest way for me to remove a trailing
\n.)accelbread | 6 days ago
Same. https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html#:~:text=On%20Ubuntu%2025.10%20and%20later%2C%20the%20default
JulianSildenLanglo | 6 days ago
Of all the possible binaries you can choose to break compatibility with,
sudohas got to be one of the most important to lamppost the breaking changes on.ekuber | 6 days ago
https://github.com/trifectatechfoundation/sudo-rs/
The first sentence:
Further down, in the section "Differences from original sudo":
To me it reads that there's a bug report for only supporting
*as the trailing pattern. Just that change would have made the original use case work:But
Which feels to me always as "I want to vent my frustration, not a solution". I encounter a lot of people on that frame of mind, because I seek them out to file tickets to the toolchain I maintain. They are generally not receptive to trying to find a fix with their involvement or requests to file tickets, but often enough they are that it is worth it to remind people that filing tickets is how developers find out about things that don't work. Many people have been burned by bad issue trackers and worse reception to filing tickets, so it is an attempt to fight that. Since starting that I have changed a lot of how I deal with my own frustration. I'd like to think that I am now more constructive.
These is an open source project. If filing a ticket is as easy as posting on social media, and you don't, you're not sticking it to the man, you're sticking it to the other users of that software.
invlpg | 5 days ago
He provides one: switching away from
sudo-rs.eschwartz | 5 days ago
I dunno, I think that as arguments go, "Canonical is a commercial company, embroiled in the Enshittification movement, and I already assume their intentions are bad and am in the long-term process of migrating away from their distro", is exactly the right shape of argument to rationalize not reporting bugs to them (and also not caring if other users of the software suffer -- "they can also choose to stop using the bad-intentioned distro").
You appear to be operating under the assumption that the blog post author wants sudo-rs to work, but the blog post author clearly feels indignant that software he does not want to use and did not ask to install was non-consensually installed behind his back on his system. Why does anyone have to submit bug reports to improve software non-consensually installed on their system behind their back?
Why is it not okay for people to vent their frustration about software being non-consensually installed on their system behind their back?
ploum | 5 days ago
Also, this blog post is very informative to tell you : "Ubuntu is so deep into enshitification that it is currently breaking decade old piece of infrastructure we rely on".
That’s very useful !
I don’t care myself about that very specific sudo-rs feature. But I’m experienced enough to read that post thinking "iif they broke that, there’s a 100% probability that they will break something I care about in the future."
If you read that post being about a sudo feature, you totally miss it is trying to convey.
And I agree with not reporting bug: if a company broke, on purpose, something that was perfectly fine for decades, you don’t waste your time trying tor argue with them about it.
ap | 5 days ago
No, he’s venting because he had to find a solution (getting the
sudohe actually wanted installed in active opposition to defaults) to a problem created by someone else on his unwilling behalf (installing asudoreplacement that doesn’t work in place of the real thing he needs).(Had that other thing been called anything else than
sudothen the problem wouldn’t have been a problem at all. It would have just amounted to “the thing I want is no longer in the default install” which no one is going to make a fuss about. Grumble for a moment about it maybe, but no more than that.)kornel | 5 days ago
Original
sudohad vulnerabilities not just from C issues, but also from logic bugs in features it supports. Not implementing all of the features is another way to mitigate the risk.johnklos | 5 days ago
They treat everyone as though we're all too dumb to know what's good for us, and they're taking proactive measures to protect us from ourselves.
What other huge company does that remind us of?
ap | 5 days ago
What other huge company doesn’t it remind us of?
hoistbypetard | 6 days ago
My fully patched vivaldi is apparently suspicious.
https://l.e42.us/0bcsSWBF
It seems likely that there's a better approach than this.
ssokolow | 5 days ago
The screenshot literally says (emphasis mine):
hoistbypetard | 5 days ago
It also says it was last updated in early 2025. I think there's probably a better approach than blocking a user agent string for 18 months at a time.
ssokolow | 5 days ago
Honestly, if I were running my own bot blocker, I'd probably have wound up in the same situation. Automatically scrape some kind of info on what the newest Chrome user agent string is for each release channel and consider it an impersonator to block if it doesn't match any of them with a week or so of margin for error.
jackdk | 5 days ago
I'm sure it's an interesting article but it doesn't like my VPN either.
nytpu | 5 days ago
As is my qt-webengine based browser that uses the Qt release from eight days ago. As is my Firefox 158.0 that released twenty-one days ago (I'll have to see if it works on 159.0 from seven days ago, or if that's still too out-of-date and suspicious).
nytpu | 5 days ago
It does block Firefox on Android 159.0 but not desktop Firefox 159.0, what a brilliantly written website.
EDIT: also blocks the latest Chromium 156.0, released fourteen days ago
siru | 5 days ago
At least it is giving you a clear error message stating that apparently all versions of Vivaldi browser are being blocked on that website.
ssokolow | 5 days ago
The error message literally says that Vivaldi users will have to turn off the "pretend to be Chrome" setting.
drp | 5 days ago
I've been moving my servers off ubuntu and onto freebsd, for similar issues to this. Ubuntu seems more interested in edging me towards user-pays instead of user-contributes :(
Ha ha ha. It certainly used to wipe out the installation. Without an easy way to bring it back. Seems like a ridiculous way to configure an install system - deliberate?
greg_loscombe | 5 days ago
Ubuntu are an anti pattern these days
c12 | 5 days ago
Ah, the Rust agenda strikes again 😆