From owner-freebsd-questions@FreeBSD.ORG Sat Apr 1 21:16:53 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC50A16A400 for ; Sat, 1 Apr 2006 21:16:53 +0000 (UTC) (envelope-from oliver-forward@charter.net) Received: from mxsf04.cluster1.charter.net (mxsf04.cluster1.charter.net [209.225.28.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0FCE43D6E for ; Sat, 1 Apr 2006 21:16:45 +0000 (GMT) (envelope-from oliver-forward@charter.net) Received: from mxip03a.cluster1.charter.net (mxip03a.cluster1.charter.net [209.225.28.133]) by mxsf04.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id k31LGiSh021177 for ; Sat, 1 Apr 2006 16:16:44 -0500 Received: from 24-205-236-185.dhcp.snlo.ca.charter.com (HELO linux.linux) ([24.205.236.185]) by mxip03a.cluster1.charter.net with ESMTP; 01 Apr 2006 16:16:44 -0500 X-IronPort-AV: i="4.03,154,1141621200"; d="scan'208"; a="7002764:sNHT22573472" From: Oliver Iberien To: Pete Slagle Date: Sat, 1 Apr 2006 13:16:42 -0800 User-Agent: KMail/1.9.1 References: <200603260056.13520.oliver.iberien@charter.net> <200603311100.50619.oliver-forward@charter.net> <442D8649.3050505@voidcaptain.com> In-Reply-To: <442D8649.3050505@voidcaptain.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604011316.42515.oliver-forward@charter.net> Cc: freebsd-questions@freebsd.org Subject: Re: Starting privoxy at startup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2006 21:16:54 -0000 I've solved this, after a fashion. Thanks again for your help. It turns out that the logfile directory, /var/log/privoxy, was accessible by root only, even with permissions changed. (Is this a basic BSD security thing? I googled that a little but was not sure.) I guessed it has been done for a reason and did not try to break it. So, I changed the location for logfile to /usr/local/etc/privoxy/log, copied the files from /var/log/privoxy there, changed their permissions, and put a little shell script in ~./.kde/Autostart to start privoxy and to point to the config file. My guess is that user privoxy could not get into /var/log/privoxy either, and that with the logfile directory changed and with all the flags (user=privoxy, /usr/local/etc/privoxy/conf) set in rc.conf, it would have worked as well. I don't know how to set two flags at once (my guess is a line saying privoxy_flags="user privoxy"," /usr/local/etc/privoxy/config" but I am not sure of the format and couldn't find documentation. Thanks, Oliver On Friday 31 March 2006 11:43, you wrote: > Oliver Iberien wrote: > > Sorry to drag this out, but I still have not got this to work. I've > > looked at the permissions of the files involved but nothing untoward > > shows up. I think. There is just the conf file and the stuff in /var/log, > > right? How should their permissions look? > > Configuration files go in /usr/local/etc/privoxy/ not /var/log. > > > If I wanted to have two flags for privoxy in rc.conf -- the one below and > > one pointing to /usr/local/etc/privoxy/conf -- what would that look like? > > Sorry, no idea. I'm not privoxy expert, just a user. I can show you what > I have working, but that's about it. > > Here's a listing of the configuration files in my installation. Most if > not all of these were installed by the port. If you don't have them, I > would reinstall the port. > > $ls -AlR /usr/local/etc/privoxy/ > > -rw-r--r-- 1 root wheel 781 Oct 18 00:55 blocklist.action > -rw-r--r-- 1 root wheel 1080 Nov 14 12:22 config > -rw-r--r-- 1 root wheel 31297 Nov 16 04:53 config.original > -r--r--r-- 1 root wheel 39617 Feb 10 06:28 default.action > -r--r--r-- 1 root wheel 28943 Feb 10 06:28 default.filter > -rw-r--r-- 1 root wheel 0 Jul 29 2005 mod-support-and-service > drwxr-xr-x 2 root wheel 1024 Feb 10 06:28 templates/ > -r--r--r-- 1 root wheel 3366 Feb 10 06:28 trust > > ./templates: > -r--r--r-- 1 root wheel 9468 Feb 10 06:28 blocked > -r--r--r-- 1 root wheel 4615 Feb 10 06:28 cgi-error-404 > -r--r--r-- 1 root wheel 4930 Feb 10 06:28 cgi-error-bad-param > -r--r--r-- 1 root wheel 4201 Feb 10 06:28 cgi-error-disabled > -r--r--r-- 1 root wheel 3877 Feb 10 06:28 cgi-error-file > -r--r--r-- 1 root wheel 4347 Feb 10 06:28 cgi-error-file-read-only > -r--r--r-- 1 root wheel 5012 Feb 10 06:28 cgi-error-modified > -r--r--r-- 1 root wheel 4965 Feb 10 06:28 cgi-error-parse > -r--r--r-- 1 root wheel 4839 Feb 10 06:28 cgi-style.css > -r--r--r-- 1 root wheel 4640 Feb 10 06:28 connect-failed > -r--r--r-- 1 root wheel 3769 Feb 10 06:28 default > -r--r--r-- 1 root wheel 6107 Feb 10 06:28 edit-actions-add-url-form > -r--r--r-- 1 root wheel 37799 Feb 10 06:28 edit-actions-for-url > -r--r--r-- 1 root wheel 602 Feb 10 06:28 edit-actions-for-url-filter > -r--r--r-- 1 root wheel 12888 Feb 10 06:28 edit-actions-list > -r--r--r-- 1 root wheel 2230 Feb 10 06:28 edit-actions-list-button > -r--r--r-- 1 root wheel 5086 Feb 10 06:28 edit-actions-list-section > -r--r--r-- 1 root wheel 3583 Feb 10 06:28 edit-actions-list-url > -r--r--r-- 1 root wheel 5863 Feb 10 06:28 edit-actions-remove-url-form > -r--r--r-- 1 root wheel 6199 Feb 10 06:28 edit-actions-url-form > -r--r--r-- 1 root wheel 523 Feb 10 06:28 mod-local-help > -r--r--r-- 1 root wheel 1243 Feb 10 06:28 mod-support-and-service > -r--r--r-- 1 root wheel 296 Feb 10 06:28 mod-title > -r--r--r-- 1 root wheel 325 Feb 10 06:28 mod-unstable-warning > -r--r--r-- 1 root wheel 4730 Feb 10 06:28 no-such-domain > -r--r--r-- 1 root wheel 4452 Feb 10 06:28 show-request > -r--r--r-- 1 root wheel 12471 Feb 10 06:28 show-status > -r--r--r-- 1 root wheel 4180 Feb 10 06:28 show-status-file > -r--r--r-- 1 root wheel 5316 Feb 10 06:28 show-url-info > -r--r--r-- 1 root wheel 4859 Feb 10 06:28 show-version > -r--r--r-- 1 root wheel 7153 Feb 10 06:28 toggle > -r--r--r-- 1 root wheel 3489 Feb 10 06:28 toggle-mini > -r--r--r-- 1 root wheel 5728 Feb 10 06:28 untrusted > > Regards, > Pete