From ee478191928e0c392ece0effb8257e3d1e1afb8b Mon Sep 17 00:00:00 2001 From: user56441 Date: Fri, 27 Mar 2020 15:08:12 -0300 Subject: [PATCH] Clean `doas` --- sheets/doas | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sheets/doas b/sheets/doas index dff6f4b..5fffee5 100644 --- a/sheets/doas +++ b/sheets/doas @@ -18,10 +18,14 @@ doas -s # # Where the option "persist" makes doas only ask for the password once in each shell session # Where the colon specifies that "wheel" is a group, not a user -# And the option "keepenv" keeps the current environment variables +# And where the option "keepenv" keeps the current environment variables +# +# The following line rejects permission for "user" to run commands as anon, +# if the user is not specified, it will default to root # -# The following line rejects permission for "user" to run commands as anon, if the user is not specified, it will default to root # deny user as anon # -# The following line allows "user" to execute only the program "shutdown" as root, without asking for a password +# The following line allows "user" to execute only the program "shutdown" as root, +# without asking for a password +# # permit nopass user cmd shutdown