sudoers.d/nordvpnd: add restarting unbound & systemd-resolved

This commit is contained in:
Aminda Suomalainen 2024-04-24 18:00:00 +03:00
parent 32c5da4422
commit 7113fda702
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 4 additions and 0 deletions

View File

@ -12,3 +12,7 @@
%nordvpn ALL=NOPASSWD: /bin/systemctl restart systemd-networkd.service
# Tells Chrony we are connected and thus maybe connects to IPv6 NTP servers
%nordvpn ALL=NOPASSWD: /usr/bin/chronyc online
# Clearing DNS caches once we are disconnected
%nordvpn ALL=NOPASSWD: /bin/systemctl restart unbound.service
%nordvpn ALL=NOPASSWD: /bin/systemctl restart systemd-resolved.service
# vim: filetype=sudoers