R4.0 rc4 sys-whonix. Tor running as root and shouldn't be?

33 views
Skip to first unread message

sebuq

unread,
Feb 18, 2018, 9:29:26 AM2/18/18
to qubes...@googlegroups.com
The command sudo tor --verify-config produces an output You are running
Tor as root. You don't need to, and you probably shouldn't (full output
below).

How is this rectified?


user@host:~$ sudo tor --verify-config
Feb 18 14:21:23.474 [notice] Tor 0.3.2.9 (git-64a719dd25a21acb) running
on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1t, Zlib 1.2.8,
Liblzma 5.1.0alpha, and Libzstd N/A.
Feb 18 14:21:23.474 [notice] Tor can't help you if you use it wrong!
Learn how to be safe at https://www.torproject.org/download/download#warning
Feb 18 14:21:23.474 [notice] Read configuration file "/etc/tor/torrc".
Feb 18 14:21:23.477 [warn] You are running Tor as root. You don't need
to, and you probably shouldn't.


msg...@gmail.com

unread,
Feb 18, 2018, 10:25:55 AM2/18/18
to qubes-users

Run it as user without sudo as warning suggests:
user@host:~$ tor --verify-config

Unman

unread,
Feb 18, 2018, 11:51:19 AM2/18/18
to qubes-users
sudo allows you to execute a command as superuser, or another user. In
Qubes, it's use is unfettered, although you can change this if you wish.
This is in the FAQ, and also here:
https://www.qubes-os.org/doc/vm-sudo

By calling "sudo tor" you invoke tor as root, which is not recommended.
As msgheap says, dont use sudo here.
If you check with ps, you'll see that tor isnt running as root in normal
operation.
Reply all
Reply to author
Forward
0 new messages