Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 1.53 KB

File metadata and controls

53 lines (31 loc) · 1.53 KB

doas sudo shim

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).

Requirements

  • 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)

Installation

On Alpine Linux

Install package doas-sudo-shim from the Alpine’s Edge repository:

apk add doas-sudo-shim

From Tarball

wget 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.

Usage

Read man page sudo(1).

See Also

License

This project is licensed under ISC License. For the full text of the license, see the LICENSE file.