Hi Tony,
In addition to the answer of Roger: you can tell the Tor daemon to run as a specific user in torrc, like: User debian-tor and in my log files I can see that both the configuration files are read:
Aug 13 06:25:01.000 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc". Aug 13 06:25:01.000 [notice] Read configuration file "/etc/tor/torrc".
On Wed, 14 Aug 2013 11:57:49 -0400, Roger Dingledine arma@mit.edu wrote:
On Wed, Aug 14, 2013 at 11:41:39PM +0800, TonyXue wrote:
Hi, Today when I was using htop to check my Tor server. I found that Tor was running as "/usr/sbin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc --hush" which seems Tor is not using the configuration file "/etc/tor/torrc" but the default one instead. So what should I do to let Tor use /etc/tor/torrc? I tried to use "/usr/sbin/tor -f /etc/tor/torrc --hush" but it returned that 'debain-tor' is the owner of '/var/lib/tor' not the user I was using.
Hi Tony,
Your tor, when started that way, does use /etc/tor/torrc as its torrc file. It *also* uses /usr/share/tor/tor-service-defaults-torrc as its backup "default defaults" torrc file.
https://gitweb.torproject.org/tor.git/blob/release-0.2.3:/ReleaseNotes#l238 https://trac.torproject.org/projects/tor/ticket/4552
In short, everything is fine.
--Roger
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays