can’t open /var/log/clamav/freshclam.log in append mode

Error:

[stextbox id=”warning”]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!).[/stextbox]

# cd /var/log/clamav
# ls -la freshclam.log
-rw-r--r-- 1 clamav clamav 0 Oct 20 03:43 freshclam.log

# nano /etc/freshclam.conf

# By default when started freshclam drops privileges and switches to the
# "clamav" user. This directive allows you to change the database owner.
# Default: clamav (may depend on installation options)
DatabaseOwner clam

Change to clamav

# nano /etc/clamd.conf
# Run as another user (clamd must be started by root for this option to work)
# Default: don't drop privileges
User clam

Change to clamav

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.