Open Forza-tng opened 1 year ago
Ordinarily you would set DatabaseOwner clamav
instead of root
. And you would set the owner to be clamav
user for both:
/var/log/clamav
/var/lib/clamav
In that configuration, and with these settings, I had no issues getting log messages to appear in the freshclam_.log
file (same filename as in your config). My freshclam.conf
file has:
LogTime yes
LogSyslog yes
LogVerbose yes
PidFile /run/freshclam.pid
Debug yes
UpdateLogFile /var/log/clamav/freshclam_.log
DatabaseDirectory /var/lib/clamav
DatabaseOwner clamav
DatabaseMirror database.clamav.net
Oh it's worth mentioning that you need to start freshclam
with sudo
/ as root in order for that PidFile
setting to work, and that freshclam
will drop privileges after startup to run as the clamav
user.
Describe the bug
I have installed ClamAV 1.2.0 on Gentoo Linux, amd64. The problem I have is that
freshclam
does not output anything to a log file, or to syslog if I configure it for that.I have also enabled verbose output and debug output, but it does not affect logging. I have switched between file log and syslog, but none are working. I do get normal console output, but debug and verbose modes do not increase console output.
When running freshclam through strace, I cannot see any syscalls that tries to write to the log file. I'll see if I can attach it to this ticket. It is rather large.
In addition I have changed clamav/freshclam user to root and changed the filesystem permissions accordingly.
I do not use the milter part of clamav.
clamconf -n
Attachments