type ls -l /var/run/clamav/clamd.ctl
take note of the group
gpasswd -a ${MAILER USERNAME} ${ABOVE GROUP}
restart the mailer
should be fixed, without root perms.
Printable View
type ls -l /var/run/clamav/clamd.ctl
take note of the group
gpasswd -a ${MAILER USERNAME} ${ABOVE GROUP}
restart the mailer
should be fixed, without root perms.
The folder rights are
-rw-rw-r-- 1 Debian-exim Debian-exim 0 2008-05-22 09:48 /var/run/clamav/clamd.ctl
I tried to do that next line as follows:
gpasswd -a ${kopite} ${Debian-exim}
IT gives the following error.
gpasswd: unknown user exim
The error has changed now though.
its now either
2008-05-22 09:50:10 1Jz6V0-0005nt-Bz malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd.ctl (Connection refused)
2008-05-22 09:57:15 1Jz6br-0005ti-Nu malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd.ctl (Permission denied)
and the clamav log has this
Thu May 22 08:08:19 2008 -> Loaded 296390 signatures.
Thu May 22 08:08:19 2008 -> ERROR: Socket file /var/run/clamav/clamd.ctl could not be bound: Permission denied
Sorry, the ${} denotes a variable, you don't actually include it, and kopite shouldn't be be the username for the exim process. Although if the clamd.ctl user and group are both debian-exim, then there shouldn't be a problem, unless the clamd service isn't running.
Clamd doesnt seem to be starting for some reason. Doesnt give an error if the user is clamav. If I change to root it starts fine. If I change it to debian-exim then it give the following messages
Starting ClamAV daemon: clamd ERROR: Can't open /var/log/clamav/clamav.log in append mode (check permissions!).
ERROR: Problem with internal logger. Please check the permissions on the /var/log/clamav/clamav.log file.
failed!
I have run both of the commands below but I havent got a clue what else to do
gpasswd -a clamav Debian-exim
gpasswd -a Debian-exim Debian-exim
what are the perms on /var/log/clamav/clamav.log ?
-rw-r----- 1 clamav adm 18002 2008-05-22 12:21 /var/log/clamav/clamav.log
and the "clamav" user is the one the daemon runs as?
Yeah.
Its doing my head in now lol
That'll be why, the stupid guide told you to make the /var/run/clamd directory to be owned and grouped by Debian-exim, afaik, debian automatically creates an exim user and group, so that step is not only pointless, but wrong.
What should have happened was sticking with the permission defaults, and adding the 'exim' user to the 'clamav' group, or something to that effect (not that I haven't used debian and exim before, so don't take this as gospel).
This way the process exim can talk to the process clamd via the clamd socket.
*edit* sorry for taking some time to reply, busy busy.