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
).
-
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-shim
wget https://github.com/jirutka/doas-sudo-shim/archive/v0.1.1/doas-sudo-shim-0.1.1.tar.gz
tar -xzf doas-sudo-shim-0.1.1.tar.gz
cd doas-sudo-shim-0.1.1
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.