On Fri, Sep 08, 2006 at 12:32:22AM +0300, Paul Irofti wrote:
> On Wednesday 06 September 2006 23:23, Gregory Smith wrote:
> > On Wed, Sep 06, 2006 at 11:02:05PM +0300, Paul Irofti wrote:
> > > Sep 06 22:41:59.365 [warn] Error creating directory
> > > /home/bulibuta/.tor: Permission denied
> > >
> > > Sep 06 22:59:08.321 [warn] switch_id(): Error setting GID:
> > > Operation not permitted
> >
> > Are you running tor as root? Since it's looking at /home/bulibuta,
> > it seems like you're not. This could cause some problems when tor
> > tries to set GID. ;)
> >
> > Greg
> 
> Running as root causes the same problem (I tried that too before 
> posting), plus Tor is not recommended to be ran as root and it works 
> just fine ran as any regular user. It's actually the proper way to run 
> it.

The following snippet of /etc/rc.local Works For Me:

if [ -x /var/tor/usr/bin/tor ]; then
        echo -n ' tor';
        /usr/sbin/chroot -u _tor -g _tor /var/tor /usr/bin/tor \
          -f /etc/tor/torrc 2>&1 | \
            grep -v 'This is experimental software';
fi

# ls -AR /var/tor
dev
etc
usr
var

/var/tor/dev:
arandom
log
null
prandom
random
srandom
stderr
stdin
stdout
urandom
zero

/var/tor/etc:
group
hosts
localtime
master.passwd
passwd
pwd.db
resolv.conf
spwd.db
tor

/var/tor/etc/tor:
dirservers
tor-tsocks.conf
torrc

/var/tor/usr:
bin
lib
libexec

/var/tor/usr/bin:
tor

/var/tor/usr/lib:
libc.so.x.y
libcrypto.so.x.y
libssl.so.x.y
libz.so.x.y

(Replace x.y with the newest version, obviously)

/var/tor/usr/libexec:
ld.so

/var/tor/var:
tor

/var/tor/var/tor:
data

/var/tor/var/tor/data:
cached-directory

                Joachim

Reply via email to