Getting freshclam-sleep error emails

Welcome to our community

Be apart of something great, join today!

RickyWref

Newbie
Messages
2
Reaction score
0
Points
1
Hi,

I'm getting freshclam-sleep error emails from of our server:
Code:
Cron <root@[host]> /usr/share/clamav/freshclam-sleep

ERROR: Can't open /var/lib/clamav/mirrors.dat for writing
ERROR: Can't open /var/lib/clamav/mirrors.dat for writing
/var/lib/clamav/ directory looks like this:
drwxr-xr-x 3 clamupdate clamupdate 4096 Jul 8 12:17 . drwxr-xr-x. 29 root root 4096 Jul 8 01:35 .. -rw-r--r-- 1 clamupdate clamupdate 1038848 Jul 8 03:07 bytecode.cld drwxr-xr-x 3 491 485 4096 Mar 7 03:30 clamav-9939694aa3a0bca18c94c57ea2061c36.tmp -rw-r--r-- 1 clamupdate clamupdate 141753856 Jul 8 12:15 daily.cld -rw-r--r-- 1 clamupdate clamupdate 117892267 Jul 2 14:36 main.cvd -rw------- 1 491 485 728 Aug 13 03:15 mirrors.dat

Can anyone guide me on how can I fix this?
 
  • Advertisement
  • cortez

    Newbie
    Messages
    21
    Reaction score
    1
    Points
    3
    The user/group should be clam update. You can update the owner by running the following:
    You don't have permission to view the spoiler content. Log in or register now.

    Hope this help :)
     
  • Advertisement
  • ITivan80

    Newbie
    Messages
    19
    Reaction score
    0
    Points
    1
    You can use the following commands to resolve the issue:

    - systemctl start clamd
    - cd /var/lib/clamav
    - rm -f *
    - systemctl start clamd
    - freshclam -v
     

    Advertisement

    Top