Opened 14 years ago

Last modified 7 years ago

#127 closed defect (Implemented)

Starting tor at boot, creates /.tor Directory

Reported by: tronayne Owned by: nickm
Priority: Low Milestone:
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: tronayne Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Version is (that doesn't appear on the Reported Version drop-down).

Linux fubar 2.4.29 #21 Thu Jan 20 17:11:39 PST 2005 i686 unknown unknown GNU/Linux

I've established a user tor and group tor (and user privoxy and group privoxy) and am starting both in /etc/rc.d. tor is starting as a daemon, with "tor" specified in /usr/local/etc/tor/torrc for both user and group as is RunAsDaemon.

The problem is that starting like this wants /.tor -- I've created it, owned by tor, mode 700, but I wonder at the wisdom of doing so, and I can't find any setting that will prevent this. Is this a (potential) problem or am I just being too picky?

[Automatically added by flyspray2trac: Operating System: Other Linux]

Child Tickets

Change History (5)

comment:1 Changed 14 years ago by arma

The DataDirectory config option will define it to be somewhere else.

Is that what you had in mind?

How can we make the documentation / man page / torrc / whatever-you-looked-at make this more clear?

comment:2 Changed 14 years ago by tronayne

Well, duh!

Yeah, reading a little further down in the torrc file (and figuring out what DataDirectory means) and no more .tor directories.

Might be a "good thing" to put a line in the "Configuring a client" section... or, on third thought, maybe not. If most folk start tor from a command line then you'd expect the ~.tor directory. I tend to start daemons for things like this and I didn't quite get what the DataDirectory option in torrc does (do now, though) even though I did print the man page and actually did read it.

Here's a thought: how about a sentence in the man page that says something about ...otherwise a .tor directory will be created in a users home directory...?

Just a thought.

Thank you for responding so quickly.

comment:3 Changed 14 years ago by nickm

Probably it would be best never to try ~/.tor when $HOME is /. I'll
add a special case for that.

comment:4 Changed 14 years ago by nickm

flyspray2trac: bug closed.
Warning/recovery code implemented in CVS.

Now, if DataDirectory is ~/.tor, and that expands to /.tor, we warn, and use $LOCALSTATEDIR/tor instead.

comment:5 Changed 7 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.