2020-01-04 23:56:46 +00:00
|
|
|
# Sample file for doas
|
|
|
|
# Please see doas.conf manual page for information on setting
|
|
|
|
# up a doas.conf file.
|
|
|
|
|
|
|
|
# Permit members of the wheel group to perform actions as root.
|
|
|
|
permit :wheel
|
|
|
|
|
|
|
|
# Permit user alice to run commands a root user.
|
|
|
|
permit alice as root
|
|
|
|
|
|
|
|
# Permit user bob to run programs as root, maintaining
|
2020-10-05 07:36:35 +00:00
|
|
|
# environment variables. Useful for GUI applications.
|
2020-01-04 23:56:46 +00:00
|
|
|
permit keepenv bob as root
|
|
|
|
|
|
|
|
# Permit user cindy to run only the pkg package manager as root
|
|
|
|
# to perform package updates and upgrades.
|
2020-11-25 20:56:22 +00:00
|
|
|
permit cindy as root cmd pkg args update
|
|
|
|
permit cindy as root cmd pkg args upgrade
|
2021-01-28 02:43:22 +00:00
|
|
|
|
|
|
|
# Allow david to run id command as root without logging it
|
|
|
|
permit nolog david as root cmd id
|
|
|
|
|