Doas

doas (“do as”) is a program to execute commands as another user. The system administrator can configure it to give specified users privileges to execute specified commands. It is free and open-source under the ISC license and available in Unix and Unix-like operating systems.
doas was developed by Ted Unangst for OpenBSD as a simpler and safer sudo replacement.
History.
doas was originally developed by Ted Unangst and was released with OpenBSD 5.8 in October 2015 replacing sudo. However, OpenBSD still provides sudo as a package.
Configuration.
Definition of privileges should be written in the configuration file, /etc/doas.conf.
Examples.
Allow user1 to execute procmap as root without password:
 permit nopass user1 as root cmd /usr/sbin/procmap
Allow members of the wheel group to run any command as root:
 permit :wheel as root
Ports and availability.
Jesse Smith’s port of doas is packaged for DragonFlyBSD, FreeBSD, and NetBSD. According to the author, it also works on illumos and macOS. OpenDoas, a Linux port, is packaged for Alpine, Arch, Gentoo, GNU Guix, Hyperboloa, Manjaro, Parabola, NixOS, and Void Linux. 