>> 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

Dear guenther

Thanks for your lengthy reply I appreciate that you went to a lot of 
effort to explain things to me.  I am sorry to say I understood very 
little of it.  However, I took the hint and worked on and learnt a bit. 
  I worked on the aspect of permission to enter the database directory 
and permission to read and write to the log file.  As a user I can scan 
but I must be root to update the database.

I need to know if this limitation to updating the database is normal and 
OK for when I install the “clamtk-2.31-1.centos.noarch.rpm” gui front 
end (I think I have used the right terminology).

However I have a new situation.  During the database update I am told to 
get the latest version:
[EMAIL PROTECTED] bin]# ./freshclam
ClamAV update process started at Mon Apr 23 19:48:41 2007
SECURITY WARNING: NO SUPPORT FOR DIGITAL SIGNATURES
See the FAQ at http://www.clamav.net/support/faq for an explanation.
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.90.1 Recommended version: 0.90.2
DON'T PANIC! Read http://www.clamav.net/support/faq
main.cvd is up to date (version: 43, sigs: 104500, f-level: 14, builder: 
sven)
daily.inc is up to date (version: 3151, sigs: 6896, f-level: 15, 
builder: ccordes)
[EMAIL PROTECTED] bin]#”

I go to the website http://www.clamav.net/support/faq and it is 
explained that I need the latest version of the scanner to detect the 
latest virus'.  To do this I am presented with a question about having 
installed from Packages or Sources.  I do not know the answer to this 
nor have I managed to find this out.

I have no objections to scrapping everything I have done so far in 
favour of an easier installation method, if there is one.

Any further help appreciated

Stephen

Here is a summery of the permission of the relevant file/directories
Path/File/Direc'               User   Grp    User Group Other
--------------------------------------------------------------------
/var/log/freshclam.log         Root   Admin   RW-  R--   RW-
/var/lib/clamav/               clamav clamav  RW-  RW-   R--
/usr/local/etc/freshclam.conf  Root   Root    RW-  R--   R--
/usr/local/etc/clamd.conf      Root   Root    RW-  R--   R--
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to