[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setting up clamav-freshclam



Steven Jones wrote:

Are you setting clamav up by hand or is it a deb packaged?

I have it running fine using the deb stuff.

dpkg:

[11:16:05] bash3 $ dpkg --list 'clamav*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
iU clamav 0.81-2 antivirus scanner for Unix
ii clamav-base 0.81-2 base package for clamav, an anti-virus utili
iU clamav-daemon 0.81-2 antivirus scanner daemon
un clamav-data <none> (no description available)
ii clamav-docs 0.81-2 documentation package for clamav, an anti-vi
iF clamav-freshcl 0.81-2 downloads clamav virus databases from the In
iU clamav-getfile 0.3-5 Update script for clamav
iU clamav-milter 0.81-2 antivirus scanner for sendmail
ii clamav-testfil 0.81-2 use these files to test that your Antivirus



Edit sources.list and add,

deb http://people.debian.org/~sgran/debian woody main

Remove the existing clamav and install the deb packages from the above.

I got mine from the regular pool, and I'm running 'sarge'. Unless you are offering a newer version I don't see the advantage.


I would suggest you read this page (the adding clamav bit down the
bottom),

http://www.thing.dyndns.org/debian/sendmaildeb.ht

OK. But I'm not running sendmail and I don't get to that point in any case.


Permissions <EDITED/>
===========

drwxr-xr-x    2 clamav   clamav       4096 Feb  6 06:25 clamav
-rw-r-----    1 root     adm          2493 Feb  9 20:18 daemon.log
8><-----

katrina:/var/log/clamav# ls -l
total 188
-rw-r-----    1 clamav   adm          3640 Feb 10 14:30 clamav.log
-rw-r-----    1 clamav   adm         20286 Feb 10 14:25 freshclam.log
8><----


Have you tried it with 777 (rwxrwxrwx) permissions?  I'm guessing the

[11:12:03] bash3 $ uname -r
2.4.27-2-k7

-rw-rw-r-- 1 root utmp 0 Feb 1 01:33 btmp
-rwxrwxr-- 1 root adm 1536 Jan 31 18:50 btmp.1
drwxrwxrwx 2 clamav adm 4096 Feb 9 16:38 clamav <===========
drwxrwxr-T 2 lp lpadmin 4096 Feb 10 11:13 cups
-rwxrwxr-- 1 root adm 0 Aug 13 13:21 cygserver.log

[11:12:58] bash3 $ ls -lF clam*
total 0
-rw-r----- 1 clamav adm 0 Feb 9 20:30 freshclam.log



logfile
isn't owned by the user or group of ClamAV.

-Ben




Makes perfectly good sense.  Sad to say, it doesn't help.
the log is owned by clamav:adm and set 0777, the parent dir
"/var/log/clamav" is set 1777.
(Also tried at 0777).




not sure, but is it possible that you don't have a user or group or both

called clamav? Maybe it didn't get purged and reconfigured properly. Should be in /etc/passwd and /etc/group?



[11:14:03] bash3 $ grep "clam" /etc/passwd
clamav:x:125:125::/var/lib/clamav:/bin/false
[11:15:46] bash3 $ grep "clam" /etc/group
adm:x:1000:superbiskit,logcheck,Debian-console-log,postgres,snort,statd,clamav
clamav:x:125:

[11:31:10] bash3 $ ls -lF /var/lib/clamav
total 1660
-rw-r--r-- 1 root root 73877 Feb 9 16:40 daily.cvd
-rw-r--r-- 1 root root 1613377 Feb 9 16:40 main.cvd



--
David A. Cobb, semi-retired (t-rex) Software Engineer, Public Access Advocate
"By God's Grace, I am a Christian man; by my actions a great sinner." -- The Way of a Pilgrim: R.French, Tr.
Running Linux: Free at last!  Free at last!
Life is too short to tolerate crappy software!





Reply to: