Problem with internal logger CLAMAV
Hi!
I have a cron job that runs clamav once a day. Everyday I receive the email report pasted below. I tried with my hosting provider, they tried their best but did not resolved the issue. Please, any advice is welcome! :-)
rgs
IM
/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!).
/etc/cron.daily/manual_clamscan:
LibClamAV Warning: cli_tnef: file truncated, returning CLEAN
LibClamAV Warning: cli_tnef: file truncated, returning CLEAN
LibClamAV Warning: cli_tnef: file truncated, returning CLEAN
-
Hi :), As per the logs, ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!). check the permissions of log file: /var/log/clamav/freshclam.log it should be like below: -rw-r----- 1 clamav clamav 4259 Sep 9 03:16 freshclam.log 0 -
Many thanks! Please, what is the permissions code for the freshclam.log file? 0 -
According to the above post the permissions are 640 and ownership is clamav:clamav 0 -
Hello :) Note you can use the "stat" command if you want to see a numerical output for the file permissions. EX: stat /var/log/clamav/freshclam.log
Thank you.0 -
Many thanks Michael! :-) There is another issue, related to the CLAMAV scan results, but I am posting another thread. Please, you can mark this thread as solved. 0
Please sign in to leave a comment.
Comments
5 comments