Author: Ajay Sharma Date: To: clamav-users Subject: Re: [Clamav-users] ERROR: Can't open /var/log/clamd.log in append
Meni Shapiro wrote: > Hi,
> I get this message a lot from the crod Daemon.
> i run linux crux 1.2 and mimedefang+SA
Check the permissions. Make sure the user that's running the clamd
daemon has write permissions to the /var/log/clamd.log file. I used to
get this a lot when I was running amavisd. The logs would get rotated
every week and the new logs were created with 'root' being the owner.
So the 'amavisd' user couldn't write to it. I fixed it by changing the
logrotate daemon to create the log files as the amavisd user. This is
what my /etc/logrotate.d/clamav file looked like: