How do I restart Tor on a Whonix gateway without root access via the console?
I found the tor-ctrl SIGNAL RELOAD command (but it doesn’t fully restart it).
I know that tor-control-panel can do this, and I want to do the same, but from the console.
I don’t have permissions to systemctl restart tor@default
I usually restart the machine and boot with sysmaint user, this user is for that, maintenance. A normal user shouldn’t have permissions or need to resolve issues with tor or any other service.
https://www.kicksecure.com/wiki/Sysmaint#Overview:_What_is_sysmaint_and_Why_Should_I_Care?
Tor Control Panel does this using the command leaprun acw-tor-control-restart. You can run this in a terminal to do the same. This uses the privleap system to essentially run systemctl restart tor@default as root without a password, so long as the user running leaprun is authorized to do so by privleap’s policy. This can be done from within PERSISTENT Mode | USER Session or LIVE Mode | USER Session, it does not require being booted into sysmaint mode.
3 Likes
Documentation slightly updated::
2 Likes