= doas sudo shim :proj-name: doas-sudo-shim :gh-name: jirutka/{proj-name} :version: 0.1.1
This is a shim for the sudo
command that utilizes https://www.mankier.com/1/doas[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
).
== Requirements
awk
, cat
, getopt
(BSD, Busybox or GNU)doas
(https://github.com/Duncaen/OpenDoas[OpenDoas] or from OpenBSD)== Installation
=== On Alpine Linux
Install package https://pkgs.alpinelinux.org/packages?name={proj-name}[{proj-name}] from the Alpine’s Edge repository:
[source, sh, subs="+attributes"] apk add {proj-name}
=== On Arch Linux
Install package https://aur.archlinux.org/packages/{proj-name}[{proj-name}] from AUR:
[source, sh, subs="+attributes"] yay -S {proj-name}
Or use another AUR helper.
=== From Tarball
[source, sh, subs="+attributes"] wget https://github.com/{gh-name}/archive/v{version}/{proj-name}-{version}.tar.gz tar -xzf {proj-name}-{version}.tar.gz cd {proj-name}-{version} make install DESTDIR=/ PREFIX=/usr/local
...or just download the link:https://raw.githubusercontent.com/{gh-name}/v{version}/sudo[sudo] script directly.
== Usage
Read man page link:sudo.1.adoc[sudo(1)].
== See Also
== License
This project is licensed under http://opensource.org/licenses/ISC/[ISC License]. For the full text of the license, see the link:LICENSE[LICENSE] file.