Hi,
I am an Ubuntu newbie compiling for the first time. I have sucessfully
compiled clamav and run the program from the shell. However, my virus
definitions are out-of-date and when I execute freshclam I receive this
error message:
Need to edit config file /usr/local/etc/freshclam.conf
/usr/local/etc/clamd.conf
Further, the clamav documention states that I should review the document
clamd.conf(5) for the purpose of configuration.
I have read this document on-line. I do not understand what I am looking
at
or what to do.
If you can help, please state explicit and concrete steps that I should
perform . . .
_______________________________________________
http://www.clamav.net/doc/0.88.4/html/node10.html
Here are a couple examples from a redhat system I built - they are only
examples, you get to decide everything and you should read through the
config files and modify these to suit you needs(these will work on a Debian
system):
http://www200.pair.com/mecham/redhat/clamd.conf
http://www200.pair.com/mecham/redhat/freshclam.conf
Any non-default directories listed in one of the two conf files would need
to be created (or already exist) and either given ownership to (in my case)
the user/group 'clamav' or otherwise be writable to by the clamav uid/gid.
This is why I specifically create /clamav/ directories - so I don't mess
with directories owned by others. The two letter country code (I have .us.)
should reflect your situation. You are also going to need some initscripts
for Debian if you want clamd to start upon bootup, and if you want to start
freshclam up as a daemon upon bootup (you can alternately run freshclam from
a cron job).
http://www.clamav.net/doc/0.88.4/html/node21.html
To set up this particular Redhat system, I ran:
mkdir /var/log/clamav/
chown -R clamav:clamav /var/log/clamav/
mkdir /var/run/clamav/
chown -R clamav:clamav /var/run/clamav/
mkdir /var/lib/clamav/
chown -R clamav:clamav /var/lib/clamav/
Here are stock Deban scripts that could be modified to match your paths and
configuration:
http://www200.pair.com/mecham/clamav-daemon
http://www200.pair.com/mecham/clamav-freshclam
They would first be placed in /etc/init.d and then you then would run, for
example:
chmod +x /etc/init.d/clamav-daemon
chmod +x /etc/init.d/clamav-freshclam
update-rc.d clamav-daemon defaults
update-rc.d clamav-freshclam defaults
Have you considered installing from a package? Your life might be easier.
All this could happen automatically with a single command. Let's see what
version would install on your system, what does this say?:
apt-cache policy clamav-daemon
Gary V
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html