Can't open /var/log/clamav/freshclam.log

dmacleo

Verified User
Joined
Jun 21, 2012
Messages
653
ok I found the root of all my mail issues (spamd blocking everything) so readding everything.
clamav installs and exim runs but I noticed freshclam not running. so when I do freshclam -v I get
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).

so I look and sure enough no clamav directory in var/logs.
so I so mkdir /var/log/clamav and touch /var/log/clamav/freshclam.log which created them then ran a ./build clamav d again.
same error though.
googling it led me to believe creating and rebuilding should have worked but....sigh

any advice?
thanks

forgot to add I am not sure what group/user I should set for the file and this may be the issue.
anyone know or could someone look at theirs to see what is used?
 
Last edited:
in the clamav conf
# Run as another user (clamd must be started by root for this option to work)
# Default: don't drop privileges
#User clamav

would mean the log files should be owned by root correct?
 
think I got it
should have looked at freshclam.conf not clamd.conf
ran chown -R clamav:clamav /var/log/clamav and freshclam and clamd are running.

live and learn...then post so others can see and laugh at you :p
 
Back
Top