session-tools/share/wg-quick.sudoers

13 lines
527 B
Text
Raw Normal View History

# Allow Natalie to run wg-quick without a password. Required by
# session-tools/bin/wg-bounce so the WG tunnel can be re-established
# from CLI without prompting (useful on hotel wifi where NAT mappings
# shift and the existing tunnel goes dead).
#
# Install with:
# sudo install -m 0440 -o root -g wheel \
# ~/Code/@scripts/session-tools/share/wg-quick.sudoers \
# /etc/sudoers.d/wg-quick
#
# Validate before activating: sudo visudo -c -f .../wg-quick.sudoers
natalie ALL=(root) NOPASSWD: /opt/homebrew/bin/wg-quick