From owner-freebsd-questions@FreeBSD.ORG Sat Sep 27 15:48:26 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EE019807 for ; Sat, 27 Sep 2014 15:48:26 +0000 (UTC) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 69D24C99 for ; Sat, 27 Sep 2014 15:48:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id s8RFKUDK042072; Sun, 28 Sep 2014 01:20:30 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sun, 28 Sep 2014 01:20:29 +1000 (EST) From: Ian Smith To: Polytropon Subject: Re: Problems starting tor service .... In-Reply-To: Message-ID: <20140928004052.C49907@sola.nimnet.asn.au> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: "William A. Mahaffey III" , freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 15:48:27 -0000 In freebsd-questions Digest, Vol 538, Issue 11, Message: 6 On Sat, 27 Sep 2014 06:43:16 +0200 Polytropon wrote: > The important information is this: > > On Fri, 26 Sep 2014 22:19:07 -0500, William A. Mahaffey III wrote: > > # tor_enable (bool): Set it to "YES" to enable tor. Default: NO > > # tor_conf (str): Points to your torrc file. > > # Default: /usr/local/etc/tor/torrc > > # tor_user (str): Tor daemon user. Default: _tor > > # tor_datadir (str): Tor datadir. Default: /var/db/tor > > # tor_logfile (str): Tor log file. Default: /var/log/tor > > # tor_loglevel (str): Tor log severity level. Default: notice > > Here, /var/db/tor has to be a directory accessible by the tor > user, and /var/log/tor has to be a file. Probably those have > to be present (as the following lines list them as required). Likely. I wonder why the installation didn't - or couldn't? - touch its logfile? syslogd needs files to preexist, assuming it's using syslog? > Check /usr/local/etc/tor/torrc if it makes any changes to the > default settings (shouldn't be, but have a look). > > > > > Sep 26 22:17:54.000 [warn] Couldn't open file for 'Log notice file > > /var/log/tor': Permission denied > > This seems to indicate that the file is present, but not > accessible. Check permissions and owner (should be "_tor" > with an underscore). Not necessarily; it could indicate permission denied to create a new file in /var/log (needing root)? presumably tor is running as _tor? Or it may have tried to open it for append? Just guessing around .. William, have you tried just ? # touch /var/log/tor If tor wants to write to that file directly, as _tor:_tor and not root, you'd likely need to # chown _tor:_tor /var/log/tor as well. Again, it seems odd - well, broken - if the install didn't arrange that. cheers, Ian