[clamav-users] Freshclam can't get started
G.W. Haywood
clamav at jubileegroup.co.uk
Sat Oct 3 23:42:10 UTC 2020
Hi there,
On Sat, 3 Oct 2020, Matthew Campbell via clamav-users wrote:
> I've had this problem since I started using Debian Linux months ago. I'm using Debian Linux 10.6.
>
> /var/local/clamav # freshclam -v --debug -F --user clamav
> ERROR: Can't open /var/local/clamav/freshclam.log in append mode (check permissions!).
> ...
> Directory permisions for /var/local/clamav are 06770 owned by clamav:clamav.
Is there any particular reason for using the /var/local/ directory?
I thought Debian maintainers tended to use /var/lib/ more often.
Anyway, either you've done something strange to the system or those
aren't the permissions. Please could you paste the output of
ls -l /var/local/
into a message and let us see what you've got? Here's an example from
one of my systems. You'll see that there is an 'x' in the fourth
column of every line. If you don't have that, then that might be a
problem - but it might not be the only one.
$ ls -l /var
total 48
drwxr-xr-x 2 root root 4096 Oct 3 06:47 backups
drwxr-xr-x 12 root root 4096 Dec 23 2019 cache
drwxr-xr-x 43 root root 4096 Jul 29 12:12 lib
drwxrwsr-x 2 root staff 4096 Aug 30 2019 local
lrwxrwxrwx 1 root root 9 Sep 19 2019 lock -> /run/lock
drwxr-xr-x 18 root root 12288 Oct 2 13:34 log
drwxrwsrwt 2 root mail 4096 Oct 2 05:36 mail
drwxr-xr-x 2 root root 4096 Sep 19 2019 opt
lrwxrwxrwx 1 root root 4 Sep 19 2019 run -> /run
drwxr-xr-x 5 root root 4096 Oct 8 2019 spool
drwxrwxrwt 2 root root 4096 Oct 3 06:47 tmp
drwxr-xr-x 3 root root 4096 Dec 23 2019 www
> File permissions for /var/local/clamav/freshclam.log are 0660 owned by clamav:clamav.
That should be OK if clamav is the UID that's running freshclam.
> I get my copies of ClamAV as a Debian package. I used apt install
> clamav. I just upgraded everything to Debian 10.6 two days ago.
> I can't seem to get the malware database started. How do I fix this?
You could remove all the clamav packages (there's more than one) and
purge them, then reinstall. But if you've done really strange things
to some directory permissions you might need to do a bit more work.
What do you plan to use ClamAV for?
--
73,
Ged.
More information about the clamav-users
mailing list