28e73e95 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 2K.1beta (1.48)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD> |
66f082ad |
<TITLE>freshclam: Setting up auto-updating</TITLE>
<META NAME="description" CONTENT="freshclam: Setting up auto-updating"> |
28e73e95 |
<META NAME="keywords" CONTENT="clamdoc">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="clamdoc.css">
|
66f082ad |
<LINK REL="next" HREF="node17.html"> |
5def21ff |
<LINK REL="previous" HREF="node15.html"> |
13c03b49 |
<LINK REL="up" HREF="node6.html"> |
28e73e95 |
<LINK REL="next" HREF="node17.html">
</HEAD>
<BODY >
<!--Navigation Panel--> |
66f082ad |
<A NAME="tex2html534" |
28e73e95 |
HREF="node17.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A> |
66f082ad |
<A NAME="tex2html530" |
13c03b49 |
HREF="node6.html"> |
28e73e95 |
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A> |
66f082ad |
<A NAME="tex2html524" |
28e73e95 |
HREF="node15.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A> |
66f082ad |
<A NAME="tex2html532" |
28e73e95 |
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="/usr/share/latex2html/icons/contents.png"></A>
<BR> |
66f082ad |
<B> Next:</B> <A NAME="tex2html535"
HREF="node17.html">Database mirrors</A>
<B> Up:</B> <A NAME="tex2html531" |
13c03b49 |
HREF="node6.html">Installation</A> |
66f082ad |
<B> Previous:</B> <A NAME="tex2html525"
HREF="node15.html">Testing</A>
  <B> <A NAME="tex2html533" |
28e73e95 |
HREF="node1.html">Contents</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
|
66f082ad |
<H2><A NAME="SECTION000310000000000000000">
freshclam: Setting up auto-updating</A> |
5def21ff |
</H2> |
66f082ad |
<I>freshclam</I> is a default database updater for Clam AntiVirus.
It can work in two modes: |
98d82606 |
|
66f082ad |
<UL>
<LI>interactive - from command line, verbosly
</LI>
<LI>daemon - alone, silently |
13c03b49 |
|
66f082ad |
</LI>
</UL>
When started by a superuser (by default) it drops privileges and switches
to the <I>clamav</I> user. <I>freshclam</I> uses the
<TT><A NAME="tex2html21"
HREF="database.clamav.net">database.clamav.net</A></TT> round-robin DNS which automatically selects
a database mirror<A HREF="node17.html#mirrors">2.11</A>. freshclam is an advanced tool: supports
proxy servers (with authentication), digital signature verification and
various error scenarios. <B>Quick test: run <I>freshclam</I> (as
superuser) with no parameters and check the output.</B> If everything
is OK you may create the log file in /var/log (owned by <I>clamav</I> or
another user freshclam will be running as (<code>--user</code>):
<PRE>
# touch /var/log/clam-update.log
# chmod 600 /var/log/clam-update.log
# chown clamav /var/log/clam-update.log
</PRE>
Now you <I>should</I> edit the configuration file (usually
<I>freshclam.conf</I>) and configure the <I>UpdateLogFile</I> directive
to point the created log file (it's highly recommended). Optionally you
may force the log file path with <I>-l</I>. Finally, to run freshclam
in the daemon mode execute:
<PRE>
# freshclam -d
</PRE>
The other method is to use the <I>cron</I> daemon. You have to add the
following line to the crontab of the <B>root</B> or <B>clamav</B> users:
<FONT SIZE="-1"> </FONT><PRE>
N * * * * /usr/local/bin/freshclam --quiet
</PRE>
to check for a new database every hour. <B>N should be a
number between 1 and 59 of your choice. Please don't choose any multiple
of 10, because there are already too many servers using those time slots.</B>
Proxy settings are only configurable via the configuration file (so you
can setup proper permissions to protect your proxy password):
<PRE>
HTTPProxyServer myproxyserver.com
HTTPProxyPort 1234
HTTPProxyUsername myusername
HTTPProxyPassword mypass
</PRE> |
5def21ff |
<P>
<HR>
<!--Navigation Panel--> |
66f082ad |
<A NAME="tex2html534" |
5def21ff |
HREF="node17.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A> |
66f082ad |
<A NAME="tex2html530" |
13c03b49 |
HREF="node6.html"> |
5def21ff |
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A> |
66f082ad |
<A NAME="tex2html524" |
5def21ff |
HREF="node15.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A> |
66f082ad |
<A NAME="tex2html532" |
5def21ff |
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="/usr/share/latex2html/icons/contents.png"></A>
<BR> |
66f082ad |
<B> Next:</B> <A NAME="tex2html535"
HREF="node17.html">Database mirrors</A>
<B> Up:</B> <A NAME="tex2html531" |
13c03b49 |
HREF="node6.html">Installation</A> |
66f082ad |
<B> Previous:</B> <A NAME="tex2html525"
HREF="node15.html">Testing</A>
  <B> <A NAME="tex2html533" |
5def21ff |
HREF="node1.html">Contents</A></B>
<!--End of Navigation Panel--> |
28e73e95 |
<ADDRESS>
Tomasz Kojm |
66f082ad |
2004-06-14 |
28e73e95 |
</ADDRESS>
</BODY>
</HTML> |