Welcome to Web Hosting Forum - Net Hosting Talk

Register now and be part of our community! When you register with the Net Hosting Talk you can join in with topics, start new topics, and generally be a part of the first level of our community. It's also quick and totally free, so what are you waiting for?

Getting freshclam-sleep error emails

RickyWref

Newbie
Messages
2
Reaction score
0
Hi,

I'm getting freshclam-sleep error emails from of our server:
Code:
Cron <[email protected][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?
 

cortez

Newbie
Messages
21
Reaction score
1
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 :)
 

ITivan80

Newbie
Messages
14
Reaction score
0
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