doas.conf 722 B

1234567891011121314151617181920212223242526
  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. ## Allow root user to execute any command
  20. permit nopass root