ClamAV freshly installed on LMDE - failing to open log file (permission denied)
1
vote
2
answers
576
views
I've just freshly installed Linux Mint Debian Edition "Faye" and then installed ClamAV.
The services clamav-freshclam and clamav-daemon don't seem to have a problem opening and writing into their respective log files, I can see that the log files are continuously being filled.
But when I try to run freshclam and clamd in the console I get:
$ clamd
ERROR: Failed to open log file /var/log/clamav/clamav.log: Permission denied
ERROR: Can't initialize the internal logger
$ freshclam
ERROR: Failed to open log file /var/log/clamav/freshclam.log: Permission denied
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!
When I try the same with sudo:
$ sudo freshclam
ERROR: Failed to lock the log file /var/log/clamav/freshclam.log: Resource temporarily unavailable
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!
$ sudo clamd
ERROR: Failed to lock the log file /var/log/clamav/clamav.log: Resource temporarily unavailable
ERROR: Can't initialize the internal logger
The files look like this:
-rw-r----- 1 clamav clamav 19042 9. Mär 20:01 clamav.log
-rw------- 1 clamav clamav 11786 9. Mär 20:01 freshclam.log
I'm a "not daily" Linux user.
What could be wrong?
Asked by R0byn
(111 rep)
Mar 9, 2025, 07:14 PM
Last activity: Mar 11, 2025, 12:26 AM
Last activity: Mar 11, 2025, 12:26 AM