On Sat, 2007-04-14 at 16:18 +0100, Stephen Constantinou wrote:
> I tried to follow as many instructions from various sources before I
> made this posting however my lack of knowledge was not improved as I
> found the freshclam.conf(5) manual impossible to understand. This file
> is not written for a new person.
>
> I removed earlier versions of clam that were installed as a result of a
> default install on Mandriva 2007. I did this as I was always upgrading
> clam and Klam to the same version. I was not able to get to the bottom
> of why the updates and upgrades were not staying.
What do you mean by "not staying"?
Anyway, is there any reason you want / need to install ClamAV for a
single user only? If you want to update ClamAV, I'd either install it
system wide from source, or by rebuilding a src.rpm with an updated
ClamAV release -- if just using the distro provided rpm is not an
option. Personally, I do prefer the src.rpm approach, since it magically
gets a lot of things right without the need to do it myself. Like a
dedicated clamav user and stuff.
Mandriva provides a ClamAV 0.90.1 update. Why don't you just install
(update) that one, instead of removing the already existing system wide
ClamAV and trying to get your own build running for a single user? You
do have update sources configured, don't you? :)
Also, there is a freshclam init script, so you don't need to update the
virus signatures manually.
> I downloaded clamav-0.90.1.tar.gz and configured it etc using the
> instructions found in the tutorial on the web, as follows:
> ./configure --prefix=/home/stephanos/clamav --disable-clamav
> make; make install
Minor nitpicking: This should be 'make && make install'.
> I think I did this as a user but I am not sure.
>
> As far as I know this worked OK. At the command line I tested the
> scanner (as a user) with the command
> clamscan /home/stephanos/
> It scanned and reminded me I was seven days out of date. So I set about
> updating it with the freshclam command.
>
> [EMAIL PROTECTED] bin]$ ./freshclam
> ERROR: Please edit the example config file
> /home/stephanos/clamav/etc/freshclam.conf.
> ERROR: Please edit the example config file
> /home/stephanos/clamav/etc/clamd.conf.
> ERROR: Can't parse the config file /home/stephanos/clamav/etc/clamd.conf
>
> So I tried as root:
Please read the error messages carefully. They do not tell you to try as
root.
> [EMAIL PROTECTED] bin]$ su
> Password:
> [EMAIL PROTECTED] bin]# ./freshclam
> ERROR: Please edit the example config file
> /home/stephanos/clamav/etc/freshclam.conf.
> ERROR: Please edit the example config file
> /home/stephanos/clamav/etc/clamd.conf.
> ERROR: Can't parse the config file /home/stephanos/clamav/etc/clamd.conf
> [EMAIL PROTECTED] bin]#
> Same problem that I had to fiddle with config files.
Yup, exactly. Edit the config files...
> Here is some other information that might be relevant:
> 1) The permissions of file:
> /home/stephanos/clamav/etc/freshclam.conf are:
> owner-stephanos, rw-r--r--.
> 2) As root, using Kate, I made file /var/log/freshclam.log as it was
> not present. The permissions of this file are: owner-root,
> rw-r--r--.
> 3) Is this log file in the right place as there is a directory
> /var/log/clamav
> 4)
> I did try to read the freshclam.conf(5) manual before editing this
> file. But I did not understand a word of it sorry,
>
> After these small changes to freshclam.conf I tried to update again but
> got the same messages.
Do read the config files. They contain pretty good comments about the
various settings.
> Any help appreciated
>
> Stephen
>
> <Contents of /home/stephanos/clamav/etc/freshclam.conf after I have
> edited it>
> ##
> ## Example config file for freshclam
> ## Please read the freshclam.conf(5) manual before editing this file.
> ##
> # Comment or remove the line below.
> Example
Sic! Let's start here...
> # Path to the database directory.
> # WARNING: It must match clamd.conf's directive!
> # Default: hardcoded (depends on installation options)
> DatabaseDirectory /var/lib/clamav
Since you installed ClamAV inside your $HOME and it is running as the
calling user (I guess, I never disabled clamav user/group testing), you
most likely will have to adjust all these paths, since you won't be able
to use the system ones.
[ lots of conf file dump snipped ]
guenther
--
char *t="[EMAIL PROTECTED]";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html