From e40a285f5475101ffcb86550599cb991c5bf44b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 20 Jul 2020 19:35:41 -0500 Subject: Update command privileges in libretools (closes #13) --- libretools/README.md | 40 ++++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/libretools/README.md b/libretools/README.md index 776837d..eabcc68 100644 --- a/libretools/README.md +++ b/libretools/README.md @@ -14,35 +14,35 @@ ### Limpiar librechroot - sudo librechroot clean-repo + doas librechroot clean-repo ### Construir entornos: - sudo librechroot -A x86_64 -n x86_64 make + doas librechroot -A x86_64 -n x86_64 make - sudo librechroot -A i686 -n i686 make + doas librechroot -A i686 -n i686 make ### Entrar a la Jaula - sudo librechroot -n x86_64 enter + doas librechroot -n x86_64 enter - sudo librechroot -n i686 enter + doas librechroot -n i686 enter ### Compilar: - sudo libremakepkg -n x86_64 + doas libremakepkg -n x86_64 - sudo libremakepkg -n i686 + doas libremakepkg -n i686 ### Actualizar jaula - sudo librechroot update + doas librechroot update - sudo librechroot -n i686 update + doas librechroot -n i686 update ### Habilitanado internet durante la compilación - sudo libremakepkg -N + doas libremakepkg -N ### Subiendo paquete @@ -57,3 +57,23 @@ > repo en donde poner el paquete ej. core, extra, community librerelease + +### Example config doas + + $ doas nano -w /etc/doas.conf + +``` +## 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 +# permit :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 +``` -- cgit v1.2.3