a portable version of OpenBSD's
doas is a minimal replacement for the venerable
sudo. It was initially written by Ted Unangst of the OpenBSD project to provide 95% of the features of
sudo with a fraction of the codebase.
This fork insults you, similar to how
sudo can. To enable, add the "insult" option to your
There are a few steps you have to carefully consider before building and installing opendoas:
This is not an official port/project from OpenBSD!
As much as possible I've attempted to stick to
doas as tedu desired it. As things stand it's essentially just code lifted from OpenBSD with shadow based authentication glommed on to it.
Compatibility functions in libopenbsd come from openbsd directly (
strlcat.c), from openssh (
readpassphrase.c) or from sudo (
The shadow authentication code does not come from the OpenBSD project.
The persist feature is disabled by default and can be enabled with the configure flag
This feature is new and potentially dangerous, in the original doas, a kernel API is used to set and clear timeouts. This API is openbsd specific and no similar API is available on other operating systems.
As a workaround, the persist feature is implemented using timestamp files similar to sudo.
See the comment block in
timestamp.c for an in-depth description on how timestamps are created and checked to be as safe as possible.