4 ms·
The biggest difference we found is that sudo is a little more convenient to manage with a config management solution, since each piece of config management code
by yjftsjthsd-h 4y ago
The biggest difference we found is that sudo is a little more convenient to manage with a config management solution, since each piece of config management code can just drop a file in /etc/sudoers.d. With doas, we have to coordinate a bunch of parts of the config management manipulating one file, /etc/doas.conf.
Apparently whether it's used is configured at build time, because I get different results trying it on Arch and Alpine, but doas absolutely has a /etc/doas.d
EDIT: Oops, apparently Alpine added that - https://git.alpinelinux.org/aports/tree/main/doas/configuration-directory.patch https://git.alpinelinux.org/aports/tree/main/doas/configurat...
- TheBrokenRail 4y ago> EDIT: Oops, apparently Alpine added that This seems like a really weird thing for a distro to add themselves rather than upstream.
- somat 4y agonot really, alpine really wanted it. openbsd did not, it was a simple patch. you are probably going to maintain a patchset anyway(for the port to alpine) might as well maintain one more to support a simple feature you really want.
- tetha 4y agoMh. I'm kinda sad that this is a distro patch. If that was upstream, we'd be using doas at this point in a few sideline setups, I'd guess. Plus, exploiting a directory list or writing files to a rather niche and secure directory generally requires rather high degrees of privilege and usually implies that the system is owned as a whole anyhow.