no password request at the expense of security

This commit is contained in:
olli 2024-10-18 10:46:53 +02:00
parent dff4c8af63
commit 5134ae5259

15
mint.sh
View File

@ -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 ]