Hi,

I need have the BerkleyDB instaled? The squidGuard don't provide a engine to read the db files?

Thans

Jorge

Pierre Fran�ois wrote:

Hi Jorge

Jorge Claudio wrote:

Hi

I am want to use a db file insted of plain textfile, but after run "squidguard -C" and created a db file I have startted squidgudard with "squid -k reconfigure" the domains in domainlist are no longer filtred.

You tell the logs says;


2003-11-28 19:40:31 [5261] init domainlist /usr/local/squidGuard/squidGuard/blacklists/custom/porn/domains
2003-11-28 19:40:31 [5261] loading dbfile /usr/local/squidGuard/squidGuard/blacklists/custom/porn/domains.db
2003-11-28 19:40:31 [5261] domainlist empty, removed from memory

and you specify:


I have to files in /usr/local/squidGuard/squidGuard/blacklists/custom/porn/

- domains
- domains.db


what is wrong.

Well, perhaps the file were created as root and since squid is not working as superuser, it was not able to read the files.


For knowing the user squid is running as, you can issue the command (I suppose you run Unix, Linux, or functionnaly equivalents):

# ps aux | grep squid

or look inside of /etc/squid.conf for a couple of lines telling squid who are the /cache_effective_user/ and ///cache_effective_group
///
Normally, it will be something like /proxy /or /squid/. That user name also has to be present in /etc/passwd. Once you know v.gr. you are running squid as user "proxy", go to your directory /usr/local/squidGuard/squidGuard/blacklists/custom/porn and issue


# chown proxy.proxy *

Now, squid and squidGuard should have the rigths to read the files.

Good luck.

--
Pierre Fran�ois (http://www.romanliturgy.org)
Roemer Visscherstraat 46
NL-1054 EZ Amsterdam
+31 20 616 58 46





Reply via email to