Changing location of ClamAV logging files

Posted by GrumpyCanuck on Server Fault See other posts from Server Fault or by GrumpyCanuck
Published on 2011-06-16T20:02:18Z Indexed on 2014/08/21 22:22 UTC
Read the original article Hit count: 497

Filed under:
|
|

I've run into a weird problem with ClamAV that I have been unable to resolve, due to a incredibly non-informative error message.

I've installed ClamAV via aptitude on an Ubuntu box (ClamAV 0.96.5/13202 according to the system) up on EC2 and it is 100% stock. We have an additional drive mounted under /mnt where we put all our log files.

When I start it up with the log files in the default location, it runs just fine. However, if I change the configuration file from /var/log/clamav/clamav.log to /mnt/clamav/clamav.log I get the error

ERROR: Can't open /mnt/clamav/clamav.log in append mode (check permissions!).
ERROR: Can't initialize the internal logger

It's the same file with the same permissions on it, just in a different location.

Any thoughts or tips on how to resolve this problem would be greatly appreciated.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about logging