/usr/share/doc/clamav-docs/html/node25.html is in clamav-docs 0.98.7+dfsg-0ubuntu0.12.04.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--Converted with LaTeX2HTML 2008 (1.71)
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>
<TITLE>Setting up auto-updating</TITLE>
<META NAME="description" CONTENT="Setting up auto-updating">
<META NAME="keywords" CONTENT="clamdoc">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="clamdoc.css">
<LINK REL="next" HREF="node27.html">
<LINK REL="previous" HREF="node24.html">
<LINK REL="up" HREF="node20.html">
<LINK REL="next" HREF="node26.html">
</HEAD>
<BODY >
<DIV CLASS="navigation"><!--Navigation Panel-->
<A NAME="tex2html539"
HREF="node26.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
<A NAME="tex2html535"
HREF="node20.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
<A NAME="tex2html529"
HREF="node24.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
<A NAME="tex2html537"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html540"
HREF="node26.html">Closest mirrors</A>
<B> Up:</B> <A NAME="tex2html536"
HREF="node20.html">Configuration</A>
<B> Previous:</B> <A NAME="tex2html530"
HREF="node24.html">Testing</A>
<B> <A NAME="tex2html538"
HREF="node1.html">Contents</A></B>
<BR>
<BR></DIV>
<!--End of Navigation Panel-->
<H2><A NAME="SECTION00054000000000000000"></A><A NAME="conf:freshclam"></A>
<BR>
Setting up auto-updating
</H2>
<code>freshclam</code> is the automatic database update tool for Clam AntiVirus.
It can work in two modes:
<UL>
<LI>interactive - on demand from command line
</LI>
<LI>daemon - silently in the background
</LI>
</UL>
<code>freshclam</code> is advanced tool: it supports scripted updates (instead
of transferring the whole CVD file at each update it only transfers the
differences between the latest and the current database via a special
script), database version checks through DNS, proxy servers (with
authentication), digital signatures and various error scenarios.
<SPAN CLASS="textbf">Quick test: run freshclam (as superuser) with no parameters
and check the output.</SPAN> If everything is OK you may create the log file in
/var/log (owned by <SPAN CLASS="textit">clamav</SPAN> or another user <code>freshclam</code> will be
running as):
<PRE>
# touch /var/log/freshclam.log
# chmod 600 /var/log/freshclam.log
# chown clamav /var/log/freshclam.log
</PRE>
Now you <SPAN CLASS="textit">should</SPAN> edit the configuration file <code>freshclam.conf</code>
and point the <SPAN CLASS="textit">UpdateLogFile</SPAN> directive to the log file. Finally, to
run <code>freshclam</code> in the daemon mode, execute:
<PRE>
# freshclam -d
</PRE>
The other way is to use the <SPAN CLASS="textit">cron</SPAN> daemon. You have to add the
following line to the crontab of <SPAN CLASS="textbf">root</SPAN> or <SPAN CLASS="textbf">clamav</SPAN> user:
<SMALL CLASS="SMALL"> </SMALL><PRE>
N * * * * /usr/local/bin/freshclam --quiet
</PRE>
to check for a new database every hour. <SPAN CLASS="textbf">N should be a
number between 3 and 57 of your choice. Please don't choose any multiple
of 10, because there are already too many clients using those time slots.</SPAN>
Proxy settings are only configurable via the configuration file and
<code>freshclam</code> will require strict permission settings for the config
file when <code>HTTPProxyPassword</code> is turned on.
<PRE>
HTTPProxyServer myproxyserver.com
HTTPProxyPort 1234
HTTPProxyUsername myusername
HTTPProxyPassword mypass
</PRE>
<P>
<BR><HR>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
<UL CLASS="ChildLinks">
<LI><A NAME="tex2html541"
HREF="node26.html">Closest mirrors</A>
</UL>
<!--End of Table of Child-Links-->
<DIV CLASS="navigation"><HR>
<!--Navigation Panel-->
<A NAME="tex2html539"
HREF="node26.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
<A NAME="tex2html535"
HREF="node20.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
<A NAME="tex2html529"
HREF="node24.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
<A NAME="tex2html537"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html540"
HREF="node26.html">Closest mirrors</A>
<B> Up:</B> <A NAME="tex2html536"
HREF="node20.html">Configuration</A>
<B> Previous:</B> <A NAME="tex2html530"
HREF="node24.html">Testing</A>
<B> <A NAME="tex2html538"
HREF="node1.html">Contents</A></B> </DIV>
<!--End of Navigation Panel-->
<ADDRESS>
Cisco 2015-03-02
</ADDRESS>
</BODY>
</HTML>
|