Skip to content

Instantly share code, notes, and snippets.

@subnut
Created August 13, 2021 08:43
Show Gist options
  • Save subnut/13316013295cf21c0b60d91a7ba2bc09 to your computer and use it in GitHub Desktop.
Save subnut/13316013295cf21c0b60d91a7ba2bc09 to your computer and use it in GitHub Desktop.
Exclude successful invokations of `sudo pihole ...` being logged to syslog
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