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

View File

@ -12,3 +12,7 @@
%nordvpn ALL=NOPASSWD: /bin/systemctl restart systemd-networkd.service %nordvpn ALL=NOPASSWD: /bin/systemctl restart systemd-networkd.service
# Tells Chrony we are connected and thus maybe connects to IPv6 NTP servers # Tells Chrony we are connected and thus maybe connects to IPv6 NTP servers
%nordvpn ALL=NOPASSWD: /usr/bin/chronyc online %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