clamd socket permissions

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

clamd socket permissions

Unread post by faris »

I think I'm struggling with a permissions problem, but I can't spot what the cause is.
Can someone please point me in the right direction? I'm hoping it is "obvious" and I've just gone temporarily blind.

I'm experimenting on a tests system with Centos 7/Plesk 12 with amavisd-new installed, plus ASL (*without* the ASL kernel)

in /etc/clamd.conf I have the following:
LocalSocket /tmp/clamd.socket
User root

Unfortunately amavisd-new, which runs as user amavisd, cannot connect to /tmp/clamd.socket

drwxrwxrwt 11 root root 20480 Mar 30 14:48 .
dr-xr-xr-x 17 root root 4096 Mar 27 13:11 ..
srw-rw-rw- 1 root root 0 Mar 30 14:46 clamd.socket

If I change the path in clamd.conf to, for example, /var/run/clamd.amavisd/clamd.socket, it works fine

drwxrwx--- 2 amavis clamav 60 Mar 27 13:10 .
drwxr-xr-x 25 root root 740 Mar 30 14:36 ..
srw-rw-rw- 1 root root 0 Mar 27 13:10 clamd.socket

I know what I want is staring me in the eye...but I can't see it.
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
Post Reply