Jorge Claudio wrote:
HiYou tell the logs says;
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.
2003-11-28 19:40:31 [5261] init domainlist /usr/local/squidGuard/squidGuard/blacklists/custom/porn/domainsand you specify:
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
I have to files in /usr/local/squidGuard/squidGuard/blacklists/custom/porn/Well, perhaps the file were created as root and since squid is not working as superuser, it was not able to read the files.
- domains
- domains.db
what is wrong.
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
