[tor-talk] Problem with running Tor atfer upgrading to 0.2.2.32-1

James Brown jbrownfirst at gmail.com
Tue Oct 18 13:53:59 UTC 2011


Good afternoon,

I am running Tor under DD-WRT v24-sp2 mega installed on a router named
"Acer WL-500GPv2".
For securety proposes I run my Tor under special user named "tor" which
creats by command adduser -h /opt/var/lib/tor -s /opt/bin/bash -S -D tor
on each restart of my router.
Some days ago I upgraded my Tor from 0.2.1.30 to 0.2.2.32-1 from hear:
http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/tor_0.2.2.32-1_mipsel.ipk
(tor_0.2.2.32-1_mipsel.ipk).
After that my Tor don't want to start under user 'tor':
$ /opt/bin/tor
Oct 15  [notice] Tor v0.2.2.32 (git-877e17749725ab88). This is
experimental software. Do not rely on it for strong anonymity. (Running
on Linux mips)
Oct 15 [notice] Initialized libevent version 2.0.11-stable using method
poll. Good.
Oct 15  [notice] Opening Socks listener on 192.168.1.102:9101
Oct 15  [warn] Directory /opt/var/lib/tor cannot be read: Permission
denied::
Oct 15  [warn] Failed to parse/validate config: Couldn't access/create
private data directory "/opt/var/lib/tor"
Oct 15 [err] Reading config failed--see warnings above.

That user - inspite of the error output - exists in my /etc/passwd:
grep tor /etc/passwd
tor:x:1:1:Linux User,,,:/opt/var/lib/tor:/opt/bin/bash

I have the next rights to /opt/var/lib/tor:#User tor
 ls -ld /opt/var/lib/tor
drwxrwx--- 3 tor tor 4096 Oct 15 15:30 /opt/var/lib/tor
-rw------- 1 tor tor cached-certs
-rw------- 1 tor tor cached-consensus
-rw------- 1 tor tor cached-descriptors
-rw------- 1 tor tor cached-descriptors.new
-rw------- 1 tor tor fingerprint
drwx------ 2 tor tor keys
-rw------- 1 tor tor lock
-rw------- 1 tor tor state

I have tried to chmod that directories files to 770 and text files to
660 but I had the above result.
Under the previos version it was works fine.

If I comment "User tor" in my /opt/etc/tor/torrc, make `chown -R
root:root /opt/var/lib/tor` and start tor it woks fine from root:
/opt/bin/tor
Oct 15  [notice] Tor v0.2.2.32 (git-877e17749725ab88). This is
experimental software. Do not rely on it for strong anonymity. (Running
on Linux mips)
Oct 15 [notice] Initialized libevent version 2.0.11-stable using method
poll. Good.
Oct 15  [notice] Opening Socks listener on 192.168.1.102:9101
Oct 15  [warn] Fixing permissions on directory /opt/var/lib/tor

But I want to run it from user tor not from root.
Is it a bug and what I need to do?

Yours

                              James



More information about the tor-talk mailing list