Doing ls -l /var/lib/tor I get the following:
Permissions user user
There are 14 more just like it. Is this normal? And if not, How do I remove them? Thanks for any help!
Doing ls -l /var/lib/tor I get the following:
Permissions user user
There are 14 more just like it. Is this normal? And if not, How do I remove them? Thanks for any help!
Yes that directory (and all files in it) should be owned by debian-tor if you installed tor using apt.
You should be able to fix that with sudo chown -R debian-tor:debian-tor /var/lib/tor
. But first make sure that tor is running under the same user by checking that ps -o user= -p $(pgrep -x tor)
returns debian-tor
.
sudo chown ...
) replaces the owner user
with the owner debian-tor
. The -R
option says to change the owner for all files in the directory as well. The debian-tor:debian-tor
repeats twice since you want to change not just the owner, but also the group.
/var/lib/tor
look okay now, and are still accessible by the user running tor (root in this case). Tor should probably not be running as root though, especially if you installed it using apt. Without knowing more about your setup, I'm not sure how to fix it.