Re: [EmiratesLoCo] Squidguard Assistance

From: Ahmad J.
Sent on: Monday, November 12, 2012 6:08 PM
Brothers:

Please see below:
[root@localhost ~]# /usr/local/squidGuard/db/adult
-bash: /usr/local/squidGuard/db/adult: is a directory
[root@localhost ~]# ll /usr/local/squidGuard/db/adult
total[masked]
-rw-r-----. 1 squid squid[masked] May  6  2010 domains
-rwxrwxrwx. 1 squid squid[masked] Nov 12 09:44 domains.db
-rw-r-----. 1 squid squid[masked] May  6  2010 domainsold2
-rw-r-----. 1 squid squid[masked] Apr  8  2010 urls
-rwxrwxrwx. 1 squid squid[masked] Nov 12 09:44 urls.db
[root@localhost ~]# ps uwax | grep squid
root      4103  0.0  0.2   3872  1104 pts/0    T    Nov11   0:00 squidGuard -C all
root      4785  0.0  0.4  14476  2400 ?        Ss   10:24   0:00 squid -f /etc/squid/squid.conf
squid     4788  0.0  1.9  17956  9612 ?        S    10:24   0:00 (squid) -f /etc/squid/squid.conf
squid     4789  0.0  0.2   3880  1064 ?        S    10:24   0:00 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
squid     4790  0.0  0.2   3880  1064 ?        S    10:24   0:00 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
squid     4791  0.0  0.2   3880  1068 ?        S    10:24   0:00 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
squid     4792  0.0  0.2   3876  1060 ?        S    10:24   0:00 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
squid     4793  0.0  0.2   3876  1060 ?        S    10:24   0:00 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
squid     4794  0.0  0.1   3268   892 ?        S    10:24   0:00 (unlinkd)
root      4974  0.0  0.1   4356   736 pts/2    S+   17:42   0:00 grep squid
[root@localhost ~]# ps uwax | grep squid
root      4103  0.0  0.2   3872  1104 pts/0    T    Nov11   0:00 squidGuard -C all
root      4785  0.0  0.4  14476  2400 ?        Ss   10:24   0:00 squid -f /etc/squid/squid.conf
squid     4788  0.0  1.9  17956  9612 ?        S    10:24   0:00 (squid) -f /etc/squid/squid.conf
squid     4789  0.0  0.2   3880  1064 ?        S    10:24   0:00 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
squid     4790  0.0  0.2   3880  1064 ?        S    10:24   0:00 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
squid     4791  0.0  0.2   3880  1068 ?        S    10:24   0:00 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
squid     4792  0.0  0.2   3876  1060 ?        S    10:24   0:00 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
squid     4793  0.0  0.2   3876  1060 ?        S    10:24   0:00 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
squid     4794  0.0  0.1   3268   892 ?        S    10:24   0:00 (unlinkd)
root      4976  0.0  0.1   4356   736 pts/2    S+   17:43   0:00 grep squid

You can see i have assigned Full permission. is there any mistake somewhere?


On Mon, Nov 12, 2012 at 10:50 AM, Ryan Parsons <[address removed]> wrote:
I agree, looks like db folder perms.


On 11/12/[masked]:30 AM, Toki Tahmid wrote:
Isn't it just that it's unable to write (or open) the database it's configured to use?


On 12 November[masked]:28, Ahmad Juma <[address removed]> wrote:
Hi Guys,

can someone assist me on this; ( i have configured squidguard/squid with CentOS)...for content filtering. am getting some logs.

[masked]:24:53 [4740] ERROR: Ending emergency mode, stdin empty
[masked]:24:53 [4741] ERROR: Ending emergency mode, stdin empty
[masked]:24:53 [4742] ERROR: Ending emergency mode, stdin empty
[masked]:24:53 [4743] ERROR: Ending emergency mode, stdin empty
[masked]:24:53 [4744] ERROR: Ending emergency mode, stdin empty
2012/11/12 10:24:53| Starting Squid Cache version[masked] for i386-redhat-linux-gnu...
2012/11/12 10:24:53| Process ID 4788
2012/11/12 10:24:53| With 1024 file descriptors available
2012/11/12 10:24:53| Initializing IP Cache...
2012/11/12 10:24:53| DNS Socket created at [::], FD 7
2012/11/12 10:24:53| DNS Socket created at[masked], FD 8
2012/11/12 10:24:53| Adding nameserver [masked] from /etc/resolv.conf
2012/11/12 10:24:53| Adding nameserver [masked] from /etc/resolv.conf
2012/11/12 10:24:53| helperOpenServers: Starting 5/5 'squidGuard' processes
2012/11/12 10:24:53| User-Agent logging is disabled.
2012/11/12 10:24:53| Referer logging is disabled.
[masked]:24:53 [4789] (squidGuard): can't write to logfile /usr/local/squidGuard/log/squidGuard.log
[masked]:24:53 [4789] INFO: New setting: dbhome: /usr/local/squidGuard/db
[masked]:24:53 [4789] INFO: New setting: logdir: /usr/local/squidGuard/log
[masked]:24:53 [4789] init domainlist /usr/local/squidGuard/db/adult/domains
[masked]:24:53 [4789] INFO: loading dbfile /usr/local/squidGuard/db/adult/domains.db
[masked]:24:53 [4789] FATAL: Error db_open: Permission denied
[masked]:24:53 [4789] ERROR: Going into emergency mode
[masked]:24:53 [4790] (squidGuard): can't write to logfile /usr/local/squidGuard/log/squidGuard.log
[masked]:24:53 [4790] INFO: New setting: dbhome: /usr/local/squidGuard/db
[masked]:24:53 [4790] INFO: New setting: logdir: /usr/local/squidGuard/log
[masked]:24:53 [4790] init domainlist /usr/local/squidGuard/db/adult/domains
[masked]:24:53 [4790] INFO: loading dbfile /usr/local/squidGuard/db/adult/domains.db
[masked]:24:53 [4790] FATAL: Error db_open: Permission denied
[masked]:24:53 [4790] ERROR: Going into emergency mode
[masked]:24:53 [4791] (squidGuard): can't write to logfile /usr/local/squidGuard/log/squidGuard.log
[masked]:24:53 [4791] INFO: New setting: dbhome: /usr/local/squidGuard/db
[masked]:24:53 [4791] INFO: New setting: logdir: /usr/local/squidGuard/log
[masked]:24:53 [4791] init domainlist /usr/local/squidGuard/db/adult/domains
[masked]:24:53 [4791] INFO: loading dbfile /usr/local/squidGuard/db/adult/domains.db
[masked]:24:53 [4792] (squidGuard): can't write to logfile /usr/local/squidGuard/log/squidGuard.log
[masked]:24:53 [4792] INFO: New setting: dbhome: /usr/local/squidGuard/db
[masked]:24:53 [4792] INFO: New setting: logdir: /usr/local/squidGuard/log
[masked]:24:53 [4792] init domainlist /usr/local/squidGuard/db/adult/domains
[masked]:24:53 [4792] INFO: loading dbfile /usr/local/squidGuard/db/adult/domains.db
[masked]:24:53 [4791] FATAL: Error db_open: Permission denied
[masked]:24:53 [4791] ERROR: Going into emergency mode
[masked]:24:53 [4792] FATAL: Error db_open: Permission denied
[masked]:24:53 [4792] ERROR: Going into emergency mode
[masked]:24:53 [4793] (squidGuard): can't write to logfile /usr/local/squidGuard/log/squidGuard.log
[masked]:24:53 [4793] INFO: New setting: dbhome: /usr/local/squidGuard/db
[masked]:24:53 [4793] INFO: New setting: logdir: /usr/local/squidGuard/log
[masked]:24:53 [4793] init domainlist /usr/local/squidGuard/db/adult/domains
[masked]:24:53 [4793] INFO: loading dbfile /usr/local/squidGuard/db/adult/domains.db
[masked]:24:53 [4793] FATAL: Error db_open: Permission denied
[masked]:24:53 [4793] ERROR: Going into emergency mode




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Ahmad Juma ([address removed]) from Emirates LoCo.
To learn more about Ahmad Juma, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York [masked] | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Toki Tahmid ([address removed]) from Emirates LoCo.
To learn more about Toki Tahmid, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Ryan Parsons ([address removed]) from Emirates LoCo.
To learn more about Ryan Parsons, visit his/her member profile

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy