Clamav - ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!)
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Ошибка
# freshclam ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!). ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
Проверяем права на лог файл freshclam:
# ls -al /var/log/clamav/freshclam.log -rw-r--r-- 1 clamav clamav 0 Dec 13 08:28 /var/log/clamav/freshclam.log
Проверяем какой пользователь стоит в /etc/freshclam.conf
# egrep Owner /etc/freshclam.conf DatabaseOwner clam
Меняем владельца на правильного:
# chown clam:clam /var/log/clamav/freshclam.log
Обновляем базу:
# freshclam ClamAV update process started at Sat Dec 13 08:34:22 2014 main.cvd is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo) Downloading daily.cvd [100%] daily.cvd updated (version: 19772, sigs: 1288257, f-level: 63, builder: neo) bytecode.cld is up to date (version: 243, sigs: 45, f-level: 63, builder: dgoddard) Database updated (3712527 signatures) from db.fr.clamav.net (IP: 46.29.125.16)