Обновить doas.conf
This commit is contained in:
parent
7630663d63
commit
beaa87c5d2
36
doas.conf
36
doas.conf
|
@ -1,35 +1,15 @@
|
||||||
## doas configuration file.
|
## doas configuration file.
|
||||||
##
|
|
||||||
## See the doas man page for the details on how to write a configuration file.
|
|
||||||
##
|
|
||||||
|
|
||||||
## Allow members of group wheel to execute any command
|
## Allow members of group wheel to execute any command
|
||||||
permit persist :wheel
|
permit persist :wheel
|
||||||
|
|
||||||
## Same thing without a password
|
|
||||||
#permit nopass :wheel
|
|
||||||
|
|
||||||
## Allow tedu to run procmap as root without a password
|
|
||||||
#permit nopass tedu as root cmd /usr/sbin/procmap
|
|
||||||
|
|
||||||
## Allow members of group power to execute power commands
|
|
||||||
permit nopass :power cmd openrc-shutdown
|
|
||||||
permit nopass :power cmd runit-halt
|
|
||||||
permit nopass :power cmd runit-shutdown
|
|
||||||
permit nopass :power cmd halt
|
|
||||||
permit nopass :power cmd poweroff
|
|
||||||
permit nopass :power cmd reboot
|
|
||||||
permit nopass :power cmd shutdown
|
|
||||||
|
|
||||||
permit nopass user as root cmd reboot
|
|
||||||
permit nopass user as root cmd poweroff
|
|
||||||
|
|
||||||
|
|
||||||
permit nopass user as root cmd /sbin/runitctl reboot
|
|
||||||
permit nopass user as root cmd /sbin/runitctl shutdown
|
|
||||||
permit nopass user as root cmd /sbin/runitctl halt
|
|
||||||
permit nopass user as root cmd /sbin/runitctl restart
|
|
||||||
|
|
||||||
|
|
||||||
## Allow root user to execute any command
|
## Allow root user to execute any command
|
||||||
permit nopass root
|
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
|
||||||
|
|
Loading…
Reference in New Issue