## Copyright (C) 2012 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

#### meta start
#### project Whonix
#### category tor and usability
#### gateway_only yes
#### description
## Allow members of the group <code>sudo</code> to restart Tor without a
## password.
##
## Tor config check using <code>anon-verify</code> without a password.
#### meta end

## Required for Tor restart and reload desktop icons.
%sudo ALL=NOPASSWD: /usr/sbin/service tor restart
%sudo ALL=NOPASSWD: /usr/sbin/service tor reload
%sudo ALL=NOPASSWD: /usr/sbin/service tor status
%sudo ALL=NOPASSWD: /usr/sbin/service tor@default restart
%sudo ALL=NOPASSWD: /usr/sbin/service tor@default reload
%sudo ALL=NOPASSWD: /usr/sbin/service tor@default status

## Required by /usr/bin/anon-verify.
%sudo ALL=NOPASSWD: /usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0 --verify-config
