mirror of
https://github.com/slicer69/doas
synced 2024-10-04 15:10:15 +00:00
91622fcbb1
users to perform commands without successful commands being logged to syslogd. Added documentation to doas.conf manual page and doas.conf.sample files to include tips and and example of the "nolog" flag in action. The "nolog" flag is a feature of OpenBSD's doas command and has been introduced for compatibility and as an optional way to avoid filling up system logs with successful doas calls.
23 lines
681 B
Plaintext
23 lines
681 B
Plaintext
# 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
|
|
# environment variables. Useful for GUI applications.
|
|
permit keepenv bob as root
|
|
|
|
# Permit user cindy to run only the pkg package manager as root
|
|
# to perform package updates and upgrades.
|
|
permit cindy as root cmd pkg args update
|
|
permit cindy as root cmd pkg args upgrade
|
|
|
|
# Allow david to run id command as root without logging it
|
|
permit nolog david as root cmd id
|
|
|