Created
August 13, 2021 08:43
-
-
Save subnut/13316013295cf21c0b60d91a7ba2bc09 to your computer and use it in GitHub Desktop.
Exclude successful invokations of `sudo pihole ...` being logged to syslog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo tee /etc/sudoers.d/020_pihole >/dev/null <<EOF | |
Cmnd_Alias PIHOLE = $(command -v pihole) | |
Defaults!PIHOLE syslog_goodpri=none, !pam_session | |
EOF | |
sudo chmod 0440 /etc/sudoers.d/020_pihole |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment