Doas est une alternative à Sudo développer par OpenBSD.
Installation:
les outils de compilation sont nécessaire (build-essential)
On Clone le dépôt Git et ont va dans le dossier du code source:
git clone https://github.com/Duncaen/OpenDoas && OpenDoas
Et on le compile et ont l'installe:
./configure
make
make install
Configuration:
nano /etc/doas.conf
## doas configuration file.
##
## See the doas man page for the details on how to write a configuration file.
##
## Allow members of group wheel to execute any command
permit :wheel
## Allow members to execute any comman
#permit USERNAME as root
## Same thing without a password
#permit nopass :whell
## Allow USERNAME to run procmap as root without a password
#permit nopass USERNAME as root cmd /usr/sbin/procmap
Doas est maintenant installé
Utilisation:
doas apt update