This is a shim for the sudo command that utilizes doas.
It supports only a subset of the sudo options (both short and long variants) that have an equivalent in doas, plus option -i (--login).
This is a fork from https://github.com/jirutka/doas-sudo-shim which adds support for the '-k' argument.
-
POSIX-sh compatible shell (e.g. Busybox ash, dash, ZSH, bash, …)
-
awk,cat,getopt(BSD, Busybox or GNU) -
doas(OpenDoas or from OpenBSD) -
(Asciidoctor to build a man page)
Install package doas-sudo-shim from the Alpine’s Edge repository:
apk add doas-sudo-shimwget https://github.com/jirutka/doas-sudo-shim/archive/v0.1.2/doas-sudo-shim-0.1.2.tar.gz
tar -xzf doas-sudo-shim-0.1.2.tar.gz
cd doas-sudo-shim-0.1.2
make install DESTDIR=/ PREFIX=/usr/local…or just download the sudo script directly.
Read man page sudo(1).
This project is licensed under ISC License. For the full text of the license, see the LICENSE file.