doas.conf 751 B

123456789101112131415161718192021222324252627
  1. ## doas configuration file.
  2. ##
  3. ## See the doas man page for the details on how to write a configuration file.
  4. ##
  5. ## Allow members of group wheel to execute any command
  6. permit persist :wheel
  7. ## Same thing without a password
  8. #permit nopass :wheel
  9. ## Allow tedu to run procmap as root without a password
  10. #permit nopass tedu as root cmd /usr/sbin/procmap
  11. ## Allow members of group power to execute power commands
  12. permit nopass :power cmd openrc-shutdown
  13. permit nopass :power cmd runit-halt
  14. permit nopass :power cmd runit-shutdown
  15. permit nopass :power cmd halt
  16. permit nopass :power cmd poweroff
  17. permit nopass :power cmd reboot
  18. permit nopass :power cmd shutdown
  19. permit nopass :power cmd zzz
  20. ## Allow root user to execute any command
  21. permit nopass root