From 5134ae5259d9d8e36f20ba7f86c7cb06298c7ef5 Mon Sep 17 00:00:00 2001 From: olli <> Date: Fri, 18 Oct 2024 10:46:53 +0200 Subject: [PATCH] no password request at the expense of security --- mint.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/mint.sh b/mint.sh index 96c27c0..efd7ef4 100644 --- a/mint.sh +++ b/mint.sh @@ -15,7 +15,20 @@ Nutzung auf einene Gefahr!!! Nur mit Enter/Return fortfahren wenn dieses Skript whoami | grep -q ^root$ || read x -set -x +## sudo without password +#echo '%adm ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/adm +#sudo chmod 640 /etc/sudoers.d/adm + +## admin actions without password +#echo '/* Allow members of the adm group to execute any actions +# * without password authentication, similar to "sudo NOPASSWD:" +# */ +#polkit.addRule(function(action, subject) { +# if (subject.isInGroup("adm")) { +# return polkit.Result.YES; +# } +#});' | sudo tee /etc/polkit-1/rules.d/adm.rules +#sudo chmod 644 /etc/polkit-1/rules.d/adm.rules # Check for using DoHoT if [ -s /etc/dnscrypt-proxy/blocked-names.txt ]