Dear Clam Users
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.
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
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:
[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.
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.
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
# Path to the database directory.
# WARNING: It must match clamd.conf's directive!
# Default: hardcoded (depends on installation options)
DatabaseDirectory /var/lib/clamav
# Path to the log file (make sure it has proper permissions)
# Default: disabled
UpdateLogFile /var/log/freshclam.log
# Enable verbose logging.
# Default: no
LogVerbose yes
# Use system logger (can work together with UpdateLogFile).
# Default: no
LogSyslog yes
# Specify the type of syslog messages - please refer to 'man syslog'
# for facility names.
# Default: LOG_LOCAL6
LogFacility LOG_MAIL
# This option allows you to save the process identifier of the daemon
# Default: disabled
PidFile /var/run/freshclam.pid
# By default when started freshclam drops privileges and switches to the
# "clamav" user. This directive allows you to change the database owner.
# Default: clamav (may depend on installation options)
DatabaseOwner clamav
# Initialize supplementary group access (freshclam must be started by root).
# Default: no
AllowSupplementaryGroups yes
# Use DNS to verify virus database version. Freshclam uses DNS TXT records
# to verify database and software versions. With this directive you can
change
# the database verification domain.
# WARNING: Do not touch it unless you're configuring freshclam to use your
# own database verification domain.
# Default: current.cvd.clamav.net
#DNSDatabaseInfo current.cvd.clamav.net
# Uncomment the following line and replace XY with your country
# code. See http://www.iana.org/cctld/cctld-whois.htm for the full list.
#DatabaseMirror db.XY.clamav.net
DatabaseMirror db.UK.clamav.net
# database.clamav.net is a round-robin record which points to our most
# reliable mirrors. It's used as a fall back in case db.XY.clamav.net is
# not working. DO NOT TOUCH the following line unless you know what you
# are doing.
# note from stephanos: below already uncommented
DatabaseMirror database.clamav.net
# How many attempts to make before giving up.
# Default: 3 (per mirror)
MaxAttempts 5
# With this option you can control scripted updates. It's highly recommended
# to keep it enabled.
ScriptedUpdates yes
# Number of database checks per day.
# Default: 12 (every two hours)
#Checks 24
# Proxy settings
# Default: disabled
#HTTPProxyServer myproxy.com
#HTTPProxyPort 1234
#HTTPProxyUsername myusername
#HTTPProxyPassword mypass
# If your servers are behind a firewall/proxy which applies User-Agent
# filtering you can use this option to force the use of a different
# User-Agent header.
# Default: clamav/version_number
HTTPUserAgent SomeUserAgentIdString
# Use aaa.bbb.ccc.ddd as client address for downloading databases.
Useful for
# multi-homed systems.
# Default: Use OS'es default outgoing IP address.
#LocalIPAddress aaa.bbb.ccc.ddd
# Send the RELOAD command to clamd.
# Default: no
#NotifyClamd /path/to/clamd.conf
# Run command after successful database update.
# Default: disabled
#OnUpdateExecute command
# Run command when database update process fails.
# Default: disabled
#OnErrorExecute command
# Run command when freshclam reports outdated version.
# In the command string %v will be replaced by the new version number.
# Default: disabled
#OnOutdatedExecute command
# Don't fork into background.
# Default: no
Foreground yes
# Enable debug messages in libclamav.
# Default: no
Debug yes
# Timeout in seconds when connecting to database server.
# Default: 30
ConnectTimeout 60
# Timeout in seconds when reading from database server.
# Default: 30
ReceiveTimeout 60
</Contents of /home/stephanos/clamav/etc/freshclam.conf.>
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html