Access-Control-Allow-Origin: *

freshclamのエラー

?Anacronからの下記のメールが来るようになった

*****************************************************
/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/yum-check-update:
?
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
*****************************************************?
freshclam.logの所有権はclam.clamではなくclamav.clamavのようだ。
?
# chown clamav.clamav /var/log/clamav/freshclam.log
?
次に
# vi /etc/logrotate.d/freshclam
?
/var/log/clamav/freshclam.log {
? ? ? ? missingok
? ? ? ? notifempty
? ? ? ? create 644 clamav clamav ←ここを修正
}
?
?
/etc/cron.daily/freshclamを実行、下記のエラーが出る
ERROR: Can't create temporary directory /var/lib/clamav/clamav-c54745c4c334dbd2155b6d00a6468966
?
# cat /var/log/clamav/freshclam.logでログ内容を点検
ERROR: Can't create temporary directory /var/lib/clamav/clamav-c54745c4c334dbd2155b6d00a6468966
Hint: The database directory must be writable for UID 496 or GID 493
?
下記を実行
chown 496:493 /var/lib/clamav
chmod 755 /var/lib/clamav
?
参照: