User:0nabbisen1/Doas

doas (“do as”) is a program for Unix and Unix-like Operating systems. It allows users to run speficied programs as specified users. It's a small and simple program in contrast to sudo, the multi-functional standard one.

Summary
doas provides simple function to give specified users specified privileges to execute specified commands. It is driven by the configuration file.

doas is one of the products by the OpenBSD Projects. It is defined as the default in OpenBSD. Also, it is supported by BSD operating systems such as FreeBSD and NetBSD. As to Linux, it is available by building from source. Besides, OpenDoas, another portable version for Linux, is also developed by other developers.

Examples about configuration file
Definition of privileges should be written in the configuration file, /etc/doas.conf. The official manual is doas.conf.5.


 * 1) 1. Allow user1 to execute procmap as root without password


 * 1) 2. Give user2 perfect root privileges (password required)

History
doas was released with the release of OpenBSD 5.8 in October 2015. The release note said "sudo in base has been replaced with doas (1), sudo is available as a package."

doas was first developed by Ted Unangst. It aims simplicity and safety following the OpenBSD philosophy: "Secure by default"