/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!).
網路查詢到這篇文章
http://chaeltung.blogspot.tw/2013/06/freshclam.html
# chown clam:clam /var/log/clamav/freshclam.log
# chown clam:clam /var/log/clamav/clamd.log
但我需要改成
# chown clamav:clamav /var/log/clamav/freshclam.log
# chown clamav:clamav /var/log/clamav/clamd.log
隔天收到錯誤訊息
/etc/cron.daily/freshclam:
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
ERROR: Can't open /var/clamav/mirrors.dat for writing
執行
#freshclam
ERROR: Can't open /var/clamav/mirrors.dat for writing
執行
# clamscan -v
Detected duplicate databases /var/clamav/main.cvd and /var/clamav/main.cld, please
manually remove one of them
找到這篇文章,依文章執行
http://ithelp.ithome.com.tw/question/10069867
***
之後還有問題,發現檔案權限不對更改相關檔案權限為clam後已解決。