Click to See Complete Forum and Search --> : inserting redirect_program /usr/bin/squidguard in config stopped any further progress


Potatoatwork
11-23-2004, 02:50 AM
Dear all,

I am trying to use squidguard with squid. Everything seems to be fine so far till I realised that when I try to insert a redirect_program /usr/bin/squidguard in the squid.conf, the whole squid cannot work.

Below is what I did:
I inserted the line redirect_program /usr/bin/squidguard in the squid.conf file.

then I typed squid -k reconfigure
and the outcome came out as: Aborted

when I tried to service squid restart the following output came out:

[root@matrix squid]# service squid restart
Stopping squid: /etc/init.d/squid: line 82: 4924 Aborted $SQUID -k check >>/var/log/squid/squid.out 2>&1
[FAILED]
Starting squid: /etc/init.d/squid: line 53: 4925 Aborted $SQUID $SQUID_OPTS >>/var/log/squid/squid.out 2>&1
[FAILED]

and inside the log file squid.out in /var/log/squid the following output came out:
FATAL: redirect_program /usr/bin/squidguard: (13) Permission denied
Squid Cache (Version 2.5.STABLE6): Terminated abnormally.
CPU Usage: 0.015 seconds = 0.009 user + 0.006 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
FATAL: redirect_program /usr/bin/squidguard: (13) Permission denied
Squid Cache (Version 2.5.STABLE6): Terminated abnormally.
CPU Usage: 0.014 seconds = 0.009 user + 0.005 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0








obviously the problem is because I changed the configurtion for the redirect_program to /usr/bin/squidguard, but that is what has been suggested in websites all over the internet.
Anyway know anything please direct me...this is just one final step for me to get squidguard working....

really appreciate any help....thanks all..

bathory
11-23-2004, 06:26 AM
FATAL: redirect_program /usr/bin/squidguard: (13) Permission denied
I guess that the user under which runs squid does not have the priviledges to run squidguard. Adjust the permissions and try again.

Potatoatwork
11-23-2004, 08:26 PM
Hi bathory,

thanks for the advice.
How do I set the permission for the Squid user to run the squidguard?

is it through the chmod command?
or is it something to do with the squid configuration?

below is the permission of squidguard in /usr/bin/squidguard:

lrwxrwxrwx 1 root root 10 Nov 18 10:12 squidguard -> squidGuard


?? thanks bathory..million thanks..

bathory
11-24-2004, 05:54 AM
After googling a little:
One of the most difficult and confusing aspects of getting squidGuard to run successfully is the fact that the correct permissions have to be set on all the files and directories that squidGuard uses. In particular, the owner and group have to be the same as the effective owner and group under which the squid proxy server runs. We can determine the owner and group that squid runs as by searching the /etc/squid/squid.conf file for the terms 'cache_effective_user' and 'cache_effective_group'.

Potatoatwork
11-24-2004, 07:47 PM
thanks!