Skip to content

jirutka/doas-sudo-shim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

On Arch Linux

Install package doas-sudo-shim from AUR:

yay -S doas-sudo-shim

Or use another AUR helper.

From Tarball

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.

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.