On Wed, Oct 01, 2003 at 10:19:35PM +0200, Thomas Lamy wrote:
> Kelsey Cummings wrote:
> >On Wed, Oct 01, 2003 at 12:14:56PM -0700, Kelsey Cummings wrote:
> >
> >>On Wed, Oct 01, 2003 at 03:09:30PM -0400, Flinn Mueller wrote:
> >>
> >>>uncomment Foreground in clamav.conf
> >>
> >>Ah, I was worried that was it.  When I do this on FreeBSD 4.8 with the
> >>latest build from the port's tree it appears to startup properly, stay in
> >>foreground, but doesn't appear to actually function.  (Doesn't accept
> >>connections on the domain sock.)
> >>
> >>I'll do some more troubleshooting.
> >
> >
> >Okay, it's binding to the socket:
> >
> >root     clamd    22888    6 stream /var/spool/MIMEDefang/clamd.sock       
> >
> >But Mimedefang is unable to connect to it:
> >
> >.... Could not connect to clamd daemon at /var/spool/MIMEDefang/clamd.sock 
> >
> >Clamd doesn't report any problems in it's logs.
> >
> So perhaps it's MimeDefang that doesn't have access to clamd's socket? 
> Check with strace if you can't get MD to spill proper error messages (eg 
> the reason _why_ it can't connect - refused, no such file, permission 
> denied)

Ah. I should have caught this:

When running in foreground it's setting permissions differently on the
socket then when it's running background:

0 srwxr-xr-x  1 root  wheel  0 Oct  1 14:27 /var/spool/MIMEDefang/clamd.sock

vs

0 srwxrwxrwx  1 root  wheel  0 Oct  1 14:31 /var/spool/MIMEDefang/clamd.sock

Probably shouldn't be running it as root anyway, but this isn't expected
behavior, correct?

-- 
Kelsey Cummings - [EMAIL PROTECTED]           sonic.net, inc.
System Administrator                      2260 Apollo Way
707.522.1000 (Voice)                      Santa Rosa, CA 95407
707.547.2199 (Fax)                        http://www.sonic.net/
Fingerprint = D5F9 667F 5D32 7347 0B79  8DB7 2B42 86B6 4E2C 3896


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to