Freshclam error

ericovk

Verified User
Joined
Apr 17, 2012
Messages
228
Location
Rotterdam, Netherlands
I keep getting this strange error on one of my servers:

Code:
/etc/cron.daily/freshclam:


ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).

All seems fine, so I can't find the cause of this error message.

Permissions seems okay:
Code:
-rw-r--r-- 1 clam clam 0 Oct  7 03:45 /var/log/clamav/freshclam.log
 
Hello,

Behalf of what user are freshclam and/or clamd running? Is it clam? Or other? Check settings and ps aux​ output.
 
Hi Alex,

Do you mean:
Code:
# ps aux | grep freshclam
clamav    7427  0.0  0.0  74844  1672 ?        Ss   Sep06  11:14 /usr/local/bin/freshclam -d

I tried to chown the damn /var/log/clamav/freshclam.log to clamav:clamav, but the system is changing it back to clam:clam.
 
You need to update clamav and freshclam configs and bring them into a consistency on what username to use. Check and update them under /etc/ directory.
 
I don't know how to do so. I changed:

/etc/freshclam.conf:
Code:
DatabaseOwner clamav

and

/etc/clamav.conf
Code:
User clamav

Besides that I also changed ownership of /var/log/clamav/freshclam.log to clamav:clamav
 
Read the comments, they are enough helpful. If it still something that scares you, then I'd suggest that you hire somebody to fix it for you.
 
Back
Top