I'm trying to set up a Tor relay on Debian Jessie. I edited the torrc file and set RunAsDaemon 1
. When I try to start tor with sudo tor
it returns this:
[warn] /var/lib/tor is not owned by this user (root, 0) but by debian-tor (110). Perhaps you are running Tor as the wrong user?
[warn] Failed to parse/validate config: Couldn't access/create private data directory "/var/lib/tor"
[err] Reading config failed--see warnings above.
How can I fix it?
service
interface, running it directly from the command line withsudo tor
will cause problems like those you saw, alsoRunAsDaemon 1
isn't required but it's overridden by the launched service anyway (if you did enforce runasdaemon it would break the tor service) but you probably want to kill the instance oftor
that's running as root:sudo kill 5184
tor
running as root, which may have interfered with thetor
service, if it's not there anymore then this should be resolved.