16 lines
460 B
Plaintext
16 lines
460 B
Plaintext
## doas configuration file.
|
|
|
|
## Allow members of group wheel to execute any command
|
|
permit persist :wheel
|
|
|
|
## Allow root user to execute any command
|
|
permit nopass root
|
|
|
|
## Same thing without a password
|
|
# permit nopass :wheel
|
|
|
|
## Пример от пользователя "user" в водить:(doas /sbin/reboot), (doas /sbin/shutdown -P now)...
|
|
permit nopass user cmd /sbin/reboot
|
|
permit nopass user cmd /sbin/shutdown
|
|
permit nopass user cmd /sbin/restart
|