Re: [squid-users] Squid with SquidGuard

From: Mark Sansome <msansome@dont-contact.us>
Date: Mon, 16 Jan 2006 21:37:56 +0000

Brian Phillips wrote:

>'su - squid'
>
>It COMPLETELY sets you as the squid user.
>
>Are you starting squid as root? Or are you using the init scripts? Or are
>you just running it on the command line as squid/proxy?
>
>
>
>
If I try as a non-privileged user:
[mark@localhost ~]$ su - squid
Password:
su: incorrect password
(Don't know what the squid password is - should I? Can I find out?)

If I try as root:
[root@localhost mark]# su - squid /usr/local/squidguard/bin/squidGuard
-c /etc/squidguard.conf
This account is currently not available.
[root@localhost mark]#
[root@localhost mark]# su - squid
This account is currently not available.
[root@localhost mark]#

Hmmm... *Should* that work?

I start squid either by rebooting or with the command /sbin/service
squid restart [or start or stop] (as root).
Whichever way, it will start quite happily but will still list the same
error in "cache.log" and the proxy will not work. Taking the
"redirect_program /usr/local/squidguard/bin/squidGuard -c
/etc/squidguard.conf" line out of squid.conf and restarting will allow
squid to work properly.

I can start squidGuard from the command line (as root) with the command:
[root@localhost mark]# /usr/local/squidguard/bin/squidGuard -d

which gives the response:
2006-01-16 21:31:01 [16626] squidGuard 1.2.0 started (1137447061.766)
2006-01-16 21:31:01 [16626] squidGuard ready for requests (1137447061.806)

(although I have to CTRL-c to get back to the command line - is that
normal?)

So - if my reasoning is correct, I can start squidGuard as root, but
when squid tries to launch it, it fails because it does not have the
right permissions somewhere or other. As you can see above I don't seem
to be able to pretend to be squid myself so that I can start it from the
command line and see what information I get...

Any ideas?

Thanks again

Mark

Received on Mon Jan 16 2006 - 14:38:20 MST

This archive was generated by hypermail pre-2.1.9 : Wed Feb 01 2006 - 12:00:01 MST