[Privoxy-users] Mac version 3.0.26 (stable) question

Ian Silvester iansilvester at fastmail.fm
Tue Nov 7 17:43:10 UTC 2017


Hi Thomas, 

Glad to help. OS X code quality has been on a downward spiral for some
years; it makes no sense at all that you are able to edit a file via
Terminal but not via Finder, especially when the Unix permissions of the
file make clear that all users should be able to edit it.
Privoxy starts automatically with OS X via a LaunchDaemon entry in the
relevant Library subfolder - you don't need to start/stop it manually at
all. It will also auto-restart when you make any edits to the
configuration files.
The start/stop scripts provided do require sudo privileges else they
cannot operate, but bear in mind if you do shut down Privoxy you will
cut off your internet access since your web browsers are configured to
access via Privoxy.
To temporarily disable Privoxy's effects, instead browse to http://p.p
and choose the option 'Toggle Privoxy On or Off'.
Ian




My PGP public key[1]


On Mon, 6 Nov 2017, at 15:24, Thomas Cha wrote:
> Hi Ian,
> 
> Thanks so much for that. The nano editor seems to have done the trick.
> I checked back at the file from the finder and the file using the
> TextEdit and it seems to have added the lines!> 
> I appreciate your help so much with this.
> 
> Just as a quick side add-on, does the Privoxy run if I click on the
> startPrivoxy.sh file? Or do I have to go into the terminal and use the
> sudo command each time?> 
> Thanks.
> Thomas
> 
> 
> 
> On Mon, Nov 6, 2017 at 2:20 PM, Ian Silvester
> <iansilvester at fastmail.fm> wrote:>> __
>> Hi Thomas,
>> 
>> user.action is world writable so I don't know why OS X is having a
>> problem in letting you edit it. In Terminal, try using the built-in
>> text editor (called nano) as follows:>> 
>> cd /usr/local/etc/privoxy
>> 
>> nano user.action
>> 
>> Google can tell you how to use the nano editor. Insert the entry you
>> wish then save. If you still cannot do so, exit then try:>> 
>> sudo nano user.action
>> 
>> You will be prompted for your login password this time - so long as
>> it is accepted you should not have trouble editing the file and
>> saving.>> 
>> 
>> Ian
>> 
>> 
>> 
>> My PGP public key[2]
>> 
>> 
>> 
>> On Mon, 6 Nov 2017, at 13:23, Thomas Cha wrote:
>>> Hi Ian,
>>> 
>>> Here's what I'm getting.
>>> 
>>> total 808
>>> 90226243 drwxr-xr-x  21 root        714  5 Nov 02:46 .
>>> 90226242 drwxr-xr-x   3 root        102 25 Oct  2016 ..
>>> 90226422 -rw-rw-r--   1 _privoxy  68280 30 Oct 17:32 config
>>> 90536456 -rw-rw-r--   1 _privoxy  62324  5 Nov 02:46 config.new
>>> 90228241 -rw-r--r--   1 _privoxy  68280  5 Nov 02:46 config.old
>>> 90536453 -rw-rw-r--   1 _privoxy  91347  5 Nov 02:46 default.action>>> 90536454 -rw-rw-r--   1 _privoxy  40438  5 Nov 02:46 default.filter>>> 90226421 -rw-rw-r--   1 _privoxy    667 30 Oct 17:32 match-
>>> all.action>>> 90536455 -rw-rw-r--   1 _privoxy    627  5 Nov 02:46 match-
>>> all.action.new>>> 90228243 -rw-r--r--   1 _privoxy    667  5 Nov 02:46 match-
>>> all.action.old>>> 90226244 drwxr-xr-x  78 root       2652  5 Nov 02:46 templates
>>> 90228247 drwxr-xr-x  41 _privoxy   1394 30 Oct 18:07 templates.old
>>> 90226423 -rw-rw-r--   1 _privoxy   3761 30 Oct 17:32 trust
>>> 90536457 -rw-rw-r--   1 _privoxy   3761  5 Nov 02:46 trust.new
>>> 90228244 -rw-r--r--   1 _privoxy   3761  5 Nov 02:46 trust.old
>>> 90226424 -rw-rw-rw-   1 _privoxy   8794 30 Oct 17:32 user.action
>>> 90536458 -rw-rw-r--   1 _privoxy   8794  5 Nov 02:46 user.action.new>>> 90228245 -rw-r--r--   1 _privoxy   8794  5 Nov 02:46 user.action.old>>> 90226425 -rw-rw-r--   1 _privoxy   3357 30 Oct 17:32 user.filter
>>> 90536459 -rw-rw-r--   1 _privoxy   3334  5 Nov 02:46 user.filter.new>>> 90228246 -rw-r--r--   1 _privoxy   3357  5 Nov 02:46 user.filter.old>>> 
>>> Thomas
>>> 
>>> 
>>> 
>>> On Mon, Nov 6, 2017 at 1:07 PM, Ian Silvester
>>> <iansilvester at fastmail.fm> wrote:>>>> __
>>>> Hi Thomas,
>>>> 
>>>> Since OS X is refusing to elevate your privileges we'll need to
>>>> look into this. Please open Terminal and execute the following
>>>> commands:>>>> 
>>>> cd /usr/local/etc/privoxy
>>>> 
>>>> ls -alio
>>>> 
>>>> 
>>>> Then please send back a cut/paste of the output of the second
>>>> command.>>>> 
>>>> 
>>>> 
>>>> 
>>>> My PGP public key[3]
>>>> 
>>>> 
>>>> On Sun, 5 Nov 2017, at 17:19, Thomas Cha wrote:
>>>>> Hi Ian,
>>>>> 
>>>>> Sorry for the late reply. Here are the answers to your questions:>>>>> 
>>>>> - Mac OS X 10.10.5
>>>>> - Settings > Users & Groups > my account listed as Admin
>>>>> (I do see privoxy server as Sharing Only)
>>>>> 
>>>>> Code I'm trying to add:
>>>>> {+block{link assistant.} +handle-as-empty-document}
>>>>> 
>>>>> www.link-assistant.com
>>>>> 
>>>>> 208.115.108.42
>>>>> 
>>>>> link-assistant.com
>>>>> 
>>>>> .link-assistant.com
>>>>> 
>>>>> 
>>>>> I'm very hopeful you can help me get this figured out.
>>>>> 
>>>>> Thanks again so much.
>>>>> Thomas
>>>>> 
>>>>> 
>>>>> 
>>>>> On Sun, Nov 5, 2017 at 12:31 PM, Ian Silvester
>>>>> <iansilvester at fastmail.fm> wrote:>>>>>> Hi Thomas,
>>>>>> 
>>>>>> What version of macOS do you have, could you confirm how you know
>>>>>> your>>>>>> account has admin rights, and could you paste into your reply the>>>>>> snippet of code you'd like to add to user.action?
>>>>>> Do not uninstall/reinstall at this point, it will not help solve>>>>>> your issue.
>>>>>> Ian
>>>>>> 
>>>>>> My PGP public key[1]
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Sun, 5 Nov 2017, at 11:08, Thomas Cha wrote:
>>>>>> > Hi Ian,
>>>>>> >
>>>>>> > Writing back to you much earlier than I thought.
>>>>>> >
>>>>>> > I tried adding the code to the user.action file and ran into a>>>>>> > permission problem. Then same thing with the config file.
>>>>>> > Here's the>>>>>> > message I'm getting in both cases:>
>>>>>> > You don't own the file "config" and don't have permission to
>>>>>> > write to it.> You can duplicate this document and edit the
>>>>>> > duplicate. Only the>>>>>> > duplicate will include your changes.> [Cancel] [Duplicate]
>>>>>> >
>>>>>> > What do I do? Make the duplicate and rename it to the original>>>>>> > file name?>
>>>>>> > I tried right clicking on the files to change the permission
>>>>>> > from>>>>>> > there to be able to read & write but that didn't seem to help.
>>>>>> > My>>>>>> > account has the admin rights.>
>>>>>> > Thanks.
>>>>>> > Thomas
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > On Sun, Nov 5, 2017 at 11:01 AM, Thomas Cha
>>>>>> > <tomcha75 at gmail.com> wrote:>> Hi Ian,
>>>>>> >>
>>>>>> >> Thanks so much for your reply. I'm going to have to r-read it
>>>>>> >> several>>>>>> >> times to digest what you're saying, but I think I
>>>>>> >> understand.>>>>>>>> >> And I have been given a snippet of code to copy and paste to
>>>>>> >> the>>>>>> >> bottom of the file so I should be ok, or I hope so.>> If all
>>>>>> >> else fails, then I will just delete and reinstall and try the>>>>>> >> online method you prescribed.>>
>>>>>> >> Thanks again so much for your taking the time to reply. Really>>>>>> >> appreciate the help.>>
>>>>>> >>
>>>>>> >> Thomas
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >> On Sun, Nov 5, 2017 at 10:53 AM, Ian Silvester
>>>>>> >> <iansilvester at fastmail.fm> wrote:>>> Hi Thomas,
>>>>>> >>>
>>>>>> >>>  All the configuration files are located at
>>>>>> >>>  /usr/local/etc/privoxy.>>>>>> >>>  macOS>>>  hides the /usr folder from Finder however, so to
>>>>>> >>>  macOS>>>  get there from>>>>>> >>>  Finder>>>  you'll need to type Cmd-Shift-G and type /usr in
>>>>>> >>>  Finder>>>  the box that>>>>>> >>>  shows, the>>>  navigate down through the folders. So long as
>>>>>> >>>  your macOS>>>>>> >>>  account has>>>  admin rights you'll be able to edit
>>>>>> >>>  Privoxy's configuration>>>>>> >>>  files in a>>>  text editor.
>>>>>> >>>
>>>>>> >>>  That said, if you're new to Privoxy, you might be best off
>>>>>> >>>  adding>>>>>> >>>  rules>>>  to user.action via the web UI, since it will
>>>>>> >>>  rules>>>  handle getting the>>>>>> >>>  syntax>>>  right for you. To enable that, edit the file
>>>>>> >>>  syntax>>>  config (at the path I>>>  listed above) and
>>>>>> >>>  syntax>>>  change the value of setting enable-edit-actions>>>>>> >>>  to 1.>>>  From then on, you can browse to http://p.p in your
>>>>>> >>>  web browser>>>>>> >>>  to edit>>>  your rules.
>>>>>> >>>
>>>>>> >>>  Hope that helps,
>>>>>> >>>
>>>>>> >>>  Ian
>>>>>> >>>
>>>>>> >>>
>>>>>> >>>  My PGP public
>>>>>> >>>  key[
>>>>>> >>>  http://diem.serveftp.net:8080/IanSilvesterPGPPublicKey.asc]>>>>>> >>>
>>>>>> >>>
>>>>>> >>> On Sun, 5 Nov 2017, at 02:48, Thomas Cha wrote:
>>>>>> >>>  > I'm completely new and don't know if this is the right
>>>>>> >>>  > place to>>>>>> >>>  > ask.>>>  > (sorry
>>>>>> >>>  > if it's not and please let me know where)
>>>>>> >>>  >
>>>>>> >>>  > Downloaded the Mac OS X version 3.0.26 from
>>>>>> >>>  > https://sourceforge.net/projects/ijbswa/files/Macintosh%20%28OS%20X%29/3.0.26%20%28stable%29/I>>>
>>>>>> >>>  > > downloaded the Privoxy 3.0.26 65 bit.pkg then ran and
>>>>>> >>>  > installed>>>>>> >>>  > it.>>>  >
>>>>>> >>>  > For something I need to do, it's telling me to go to the
>>>>>> >>>  > Privoxy>>>  > installation directory (I found the folder
>>>>>> >>>  > in the Applications>>>>>> >>>  > folder)>>>  > and
>>>>>> >>>  > add some lines to the end of the user.action file. But I
>>>>>> >>>  > can't>>>>>> >>>  > seem to>>>  > find
>>>>>> >>>  > this file anywhere.
>>>>>> >>>  >
>>>>>> >>>  > Where do I look to find it?
>>>>>> >>>  >
>>>>>> >>>  > I saw it in a version recommended at the top of the list
>>>>>> >>>  > (by>>>>>> >>>  > clicking on>>>  > the link "Download privoxy-3.0.24-stable-
>>>>>> >>>  > src.tar.gz (1.7 MB)")>>>>>> >>>  > and found>>>  > the user.action file but couldn't install
>>>>>> >>>  > it. I'm guessing that>>>>>> >>>  > was for>>>  > Windows and not for Mac...
>>>>>> >>>  >
>>>>>> >>>  > Where I do find the right file? Or if I have the right
>>>>>> >>>  > file, then>>>>>> >>>  > where>>>  > do
>>>>>> >>>  > I find the user.action after having installed it?
>>>>>> >>>  >
>>>>>> >>>  > Thanks.
>>>>>> >>>  > Thomas
>>>>>> >>> > _______________________________________________
>>>>>> >>>  > Privoxy-users mailing list
>>>>>> >>>  > Privoxy-users at lists.privoxy.org
>>>>>> >>>  > https://lists.privoxy.org/mailman/listinfo/privoxy-users
>>>>>> >>>  _______________________________________________
>>>>>> >>>  Privoxy-users mailing list
>>>>>> >>> Privoxy-users at lists.privoxy.org
>>>>>> >>> https://lists.privoxy.org/mailman/listinfo/privoxy-users
>>>>>> 
>>>>>> Links:
>>>>>> 
>>>>>>   1. http://diem.serveftp.net:8080/IanSilvesterPGPPublicKey.asc
>>>>>> 
>>>>>> _______________________________________________
>>>>>> Privoxy-users mailing list
>>>>>> Privoxy-users at lists.privoxy.org
>>>>>> https://lists.privoxy.org/mailman/listinfo/privoxy-users
>>>> 
>> 


Links:

  1. http://diem.serveftp.net:8080/IanSilvesterPGPPublicKey.asc
  2. http://diem.serveftp.net:8080/IanSilvesterPGPPublicKey.asc
  3. http://diem.serveftp.net:8080/IanSilvesterPGPPublicKey.asc


More information about the Privoxy-users mailing list