Added _power group
This commit is contained in:
parent
fe74644b28
commit
36a92dc3d0
1 changed files with 8 additions and 2 deletions
|
@ -14,8 +14,14 @@ Also configure `doas` through `/etc/doas.d/main.conf`:
|
|||
|
||||
```
|
||||
permit persist :wheel as root
|
||||
permit nopasss :wheel cmd poweroff
|
||||
permit nopasss :wheel cmd reboot
|
||||
permit nopasss :_power cmd poweroff
|
||||
permit nopasss :_power cmd reboot
|
||||
```
|
||||
|
||||
And create a `_power` group for user's to be able to poweroff the system without root:
|
||||
|
||||
```
|
||||
# addgroup -S _power
|
||||
```
|
||||
|
||||
## Adding a user
|
||||
|
|
Loading…
Reference in a new issue