aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-03-31 04:17:22 +0800
committerJesús <heckyel@hyperbola.info>2022-03-31 04:17:22 +0800
commitc0e0dbfc36d6332a6989bdb59aad5845ee217d15 (patch)
treec1fb375e4aef224536cb0ea714b2c939ceec5da4
parent2664f47bffcd92c12aa83b65cf9ff56203ae9f81 (diff)
downloadbook-c0e0dbfc36d6332a6989bdb59aad5845ee217d15.tar.lz
book-c0e0dbfc36d6332a6989bdb59aad5845ee217d15.tar.xz
book-c0e0dbfc36d6332a6989bdb59aad5845ee217d15.zip
update doas conf
-rw-r--r--libretools/README.md16
1 files changed, 14 insertions, 2 deletions
diff --git a/libretools/README.md b/libretools/README.md
index 9c14a7b..85c0569 100644
--- a/libretools/README.md
+++ b/libretools/README.md
@@ -108,13 +108,25 @@ $ doas nano -w /etc/doas.conf
##
## Allow members of group wheel to execute any command
-# permit :wheel
+permit persist :wheel
## Same thing without a password
-permit nopass :wheel
+#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
+
+## Allow root user to execute any command
+permit nopass root
```
## Configuración chroot para Hyperbola v0.4