vermaden · @vermaden
94 followers · 134 posts · Server mastodon.bsd.cafe

Interesting sudo(8) versus doas(1) case.

While I always prefer doas(1) over sudo(8) there is at least one case where doas(1) is useless.

Allow group member to just install packages and not remove them.

Details in the FEATURE REQUEST here:

github.com/slicer69/doas/issue

#sudo #doas

Last updated 1 year ago

Kevin Karhan :verified: · @kkarhan
1292 followers · 87467 posts · Server mstdn.social

@littlefox also since it's in I hope there will be a way to forego any need for / / ... entirely and thus lock down a system when needed.

howtogeek.com/devops/how-to-cr

#doas #su #SUDO #userspace

Last updated 1 year ago

Paul Buetow · @snonux
64 followers · 424 posts · Server fosstodon.org
intro · @intro
19 followers · 905 posts · Server mastodontech.de

Ciao es war schön mit dir, du hast mich lange Zeit auf vielen begleitet, warst immer eines meiner top ,kommst aus den "guten" alten 80ern und bist immer noch auf vielen Systeme aufrufbar😉.
Da bei mir die Wochen laufen und mein System gut läuft, hab ich für mich entdeckt und muss sagen, es ist sehr schlank übersichtlich leicht konfigurierbar und wird nicht nur als Test SW auf meinen bleiben👍. Ciao

linux-community.de/ausgaben/li

#sudo #Distributionen #tools #unixoiden #freebsd #doas

Last updated 1 year ago

Fossery Tech :fedora: :krita: · @fosserytech
270 followers · 589 posts · Server mstdn.social
Klaus Zimmermann :unverified: · @kzimmermann
891 followers · 5765 posts · Server fosstodon.org

I never understood why, at least in Linux, does not have the "persist" function working. Or the support is shaky: seems to get it right, but some others don't, so I have to type the password a lot more often.

But at least it seems that Debian has a version with the feature working. Hopefully it gets into other distros too!

#doas #alpinelinux #sid

Last updated 1 year ago

JdeBP · @JdeBP
35 followers · 249 posts · Server tty0.social

@brynet @benjamineskola @judfilm @brightside

You in fact _are_ talking about PAM, though, because that's where 50% of the the __Linux__ conditional compilation actually is, and 25% of it is in comments. (-:

Example: github.com/slicer69/doas/blob/

#ifdef #doas #linuxpam #pam

Last updated 1 year ago

JdeBP · @JdeBP
35 followers · 249 posts · Server tty0.social

@brynet @benjamineskola @judfilm @brightside

Of course it's going to have . It does PAM on systems with OpenPAM and LinuxPAM and BSD Auth on OpenBSD. It's a fairly superficial analysis to say that something is problematic because it has __Linux__. Indeed, that's the same level of analysis as the OpenDoas author wholesale deleting all the code that's behind __OpenBSD__, the exact commit for which is earlier in this very thread.

#ifdefs #ifdef #openbsd #doas

Last updated 1 year ago

JdeBP · @JdeBP
35 followers · 244 posts · Server tty0.social

@brynet @benjamineskola @judfilm @mark @brightside

Ironically, one of its open bugs is completely down to , specifically not doing what does.

github.com/slicer69/doas/issue

The other open bug has a very simple and blunt answer: cannot compile an ioctl() out of the Linux kernel. This is a bug against , the world knows it, and the bug filer should know it.

github.com/slicer69/doas/issue

#pam #linuxpam #openpam #doas #linux #openbsd

Last updated 1 year ago

JdeBP · @JdeBP
35 followers · 244 posts · Server tty0.social

@brynet @benjamineskola @judfilm @mark @brightside

The slicer69 has, however, retained most of the tedu code, and added an library compatibility layer to avoid changing some stuff. strlcpy() is in there, using millert's code.

Indeed, it has stuck to its guns over those very ioctl()s, pointing out that if one wants that functionality one needs OpenBSD for it.

As I've already pointed out, OpenDoas just wholesale deleted everything that conditionally compiled for non-Linux.

#doas #openbsd

Last updated 1 year ago

JdeBP · @JdeBP
35 followers · 244 posts · Server tty0.social

@benjamineskola @judfilm @mark @brightside

I pointed out the AUR having the other package, earlier. So a good start for the and and whatnots would be following . Interestingly, Debian renamed its OpenDoas package away from the name "doas", although it still installs the command under that name, so the now unused package name is presumably reassignable. I think even the transition package is gone, now, although I haven't checked.

#doas #debian #ubuntu #archlinux #openbsd

Last updated 1 year ago

JdeBP · @JdeBP
35 followers · 238 posts · Server tty0.social

@mark @brightside

No. Someone took the portable source code that targetted multiple operating systems, gutted all of the parts from it, on the somewhat dubious grounds that the portable bits for other operating systems didn't build on Linux, and replaced them with mechanisms that work how sudo works. And they decided to name it "Opendoas".

And the people who put together , , et al. decided that that was what they were going to officially ship as "doas".

#doas #openbsd #archlinux #debian

Last updated 1 year ago

JdeBP · @JdeBP
35 followers · 238 posts · Server tty0.social

@brightside @mark

... or (and probably several of its derivatives) where the non-OpenBSD version of is the only choice and the one with the portable code that covers and others is not packaged.

tracker.debian.org/pkg/opendoa

#debian #doas #openbsd

Last updated 1 year ago

JdeBP · @JdeBP
35 followers · 238 posts · Server tty0.social

@brightside @mark

... except when you are using , where the AUR package has the code, but the "official" doas package has had all of the OpenBSD code taken out and the timestamp files and other mechanisms from sudo substituted in.

github.com/Duncaen/OpenDoas/co

github.com/Duncaen/OpenDoas/co

github.com/slicer69/doas/issue

#archlinux #doas #openbsd

Last updated 1 year ago

R. L. Dane · @RL_Dane
1275 followers · 19910 posts · Server fosstodon.org

@JdeBP

Are they using Linux-only syscalls? Is that why it's not portable anymore?

@pixelherodev

#doas #freebsd #openbsd

Last updated 1 year ago

R. L. Dane · @RL_Dane
1264 followers · 19584 posts · Server fosstodon.org

@pixelherodev

The only reason I'm not running is that the persist option only works in

#doas #openbsd

Last updated 1 year ago

JdeBP · @JdeBP
31 followers · 187 posts · Server tty0.social

@Antitrust @lobsters

In the end, a sudo replacement that (a) keeps the same configuration file syntax with its surprising meanings for the '#' character that trip up administrators, and (b) only works on Linux-based operating systems; is not an improvement, whatever language it is written in. Picking the programming language choice as the thing to fix, at the expense of thereby eliminating portability, is missing the elephant in the room.

#rust #sudo #doas

Last updated 1 year ago

Klaus Zimmermann :unverified: · @kzimmermann
833 followers · 5507 posts · Server fosstodon.org

Setting with passwordless authentication

kzimmermann.0x.no/updates/2023

I was banging my head against the wall with this for the longest of times... until I learned about this bit of absolute paths!

#doas

Last updated 1 year ago

nickelson · @nickelson
3 followers · 68 posts · Server fosstodon.org

Tried using but seems it will require password every time even withing the same session unlike 🤷‍♂️

#doas #sudo

Last updated 1 year ago

So after the vulnerability and the video of Mental outlaw, i have moved from sudo 170K lines of code to opendoas 3k line of code.

And to mitigate the decade of sudo muscle memory, i've made an alias sudo -> doas.

Don't forget to actually make doas yourpackagemanager remove sudo.

Like that if your doas is broken it won't remove sudo.

#security #linux #doas #sudo #vulnerability

Last updated 1 year ago