I am trying to run hidden services with tor. But when I start it just using tor
I get this error:
... is not owned by this user (user, 1000) but by debian-tor (118). Perhaps you are running Tor as the wrong user?
When I run it using sudo tor
:
... is not owned by this user (root, 0) but by debian-tor (118). Perhaps you are running Tor as the wrong user?
And when I try sudo service tor start
it doesn't show any errors but it still doesn't works.
I also added User debian-tor
to torrc. But than I get the error Directory /root/.tor cannot be read: Permission denied
when I run it as root(sudo tor
). And the error Directory ... cannot be read: Permission denied
when I run it with tor
or as service.
When I change the owner of the directory to root I can start it with sudo tor
but still not with sudo service tor start
, I also don't think it is save tor run it with the root user.
I am using Debian Jessie. Does anyone know how I can fix this? I want to run tor as a service.
EDIT: I installed centos and got the exact same error...
But i found out when I use /var/lib/tor/
as directory it works!
But when I use /var/lib/tor/hidden_service/
(With user _tor as owner) I still have an permission error. I tried to add ReadWriteDirectories
to tor.service
with /var/lib/tor/hidden_service/
as directory. But that also doesn't work.