💾 Archived View for spam.works › users › emery › no_sudo_for_you.gmi captured on 2023-07-22 at 21:39:10. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-06-14)

-=-=-=-=-=-=-

An opinionated reimplentation of sudo

I really don't like scripts that call `sudo` to make a helpful mutation of my global system state.

I rewrote my sudo to

#include <stdlib.h>
int main() { return (long)getenv("NO_SUDO_FOR_YOU"); }

which succeeds by default or fails if NO_SUDO_FOR_YOU is set in the environment.

These scripts mostly fail on NixOS, or they do something simple that I would rather rewrite as a script myself. When I do need to use the "super user" account, I use `doas` from OpenBSD.

https://git.sr.ht/~ehmry/NO_SUDO_FOR_YOU

NO SOUP FOR YOU