Starting privoxy at startup
Oliver Iberien
oliver-forward at charter.net
Sat Apr 1 21:16:54 UTC 2006
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
More information about the freebsd-questions
mailing list