~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to docs/html/node24.html

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20070220103344-zgcu2psnx9d98fpa
Tags: upstream-0.90
ImportĀ upstreamĀ versionĀ 0.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2
2
 
3
 
<!--Converted with LaTeX2HTML 2008 (1.71)
 
3
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
4
4
original version by:  Nikos Drakos, CBLU, University of Leeds
5
5
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
6
6
* with significant contributions from:
7
7
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
8
8
<HTML>
9
9
<HEAD>
10
 
<TITLE>Setting up auto-updating</TITLE>
11
 
<META NAME="description" CONTENT="Setting up auto-updating">
 
10
<TITLE>Clamdscan</TITLE>
 
11
<META NAME="description" CONTENT="Clamdscan">
12
12
<META NAME="keywords" CONTENT="clamdoc">
13
13
<META NAME="resource-type" CONTENT="document">
14
14
<META NAME="distribution" CONTENT="global">
15
15
 
16
 
<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
 
16
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
 
17
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
17
18
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
18
19
 
19
20
<LINK REL="STYLESHEET" HREF="clamdoc.css">
20
21
 
21
 
<LINK REL="next" HREF="node26.html">
 
22
<LINK REL="next" HREF="node25.html">
22
23
<LINK REL="previous" HREF="node23.html">
23
 
<LINK REL="up" HREF="node19.html">
 
24
<LINK REL="up" HREF="node22.html">
24
25
<LINK REL="next" HREF="node25.html">
25
26
</HEAD>
26
27
 
27
28
<BODY >
28
 
 
29
 
<DIV CLASS="navigation"><!--Navigation Panel-->
30
 
<A NAME="tex2html514"
 
29
<!--Navigation Panel-->
 
30
<A NAME="tex2html497"
31
31
  HREF="node25.html">
32
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
33
 
<A NAME="tex2html510"
34
 
  HREF="node19.html">
 
33
<A NAME="tex2html493"
 
34
  HREF="node22.html">
35
35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
36
 
<A NAME="tex2html504"
 
36
<A NAME="tex2html487"
37
37
  HREF="node23.html">
38
38
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
39
 
<A NAME="tex2html512"
 
39
<A NAME="tex2html495"
40
40
  HREF="node1.html">
41
41
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
42
42
<BR>
43
 
<B> Next:</B> <A NAME="tex2html515"
44
 
  HREF="node25.html">Closest mirrors</A>
45
 
<B> Up:</B> <A NAME="tex2html511"
46
 
  HREF="node19.html">Configuration</A>
47
 
<B> Previous:</B> <A NAME="tex2html505"
48
 
  HREF="node23.html">Testing</A>
49
 
 &nbsp; <B>  <A NAME="tex2html513"
 
43
<B> Next:</B> <A NAME="tex2html498"
 
44
  HREF="node25.html">Clamuko</A>
 
45
<B> Up:</B> <A NAME="tex2html494"
 
46
  HREF="node22.html">Usage</A>
 
47
<B> Previous:</B> <A NAME="tex2html488"
 
48
  HREF="node23.html">Clam daemon</A>
 
49
 &nbsp <B>  <A NAME="tex2html496"
50
50
  HREF="node1.html">Contents</A></B> 
51
51
<BR>
52
 
<BR></DIV>
 
52
<BR>
53
53
<!--End of Navigation Panel-->
54
54
 
55
 
<H2><A NAME="SECTION00054000000000000000">
56
 
Setting up auto-updating</A>
 
55
<H2><A NAME="SECTION00062000000000000000">
 
56
Clam<B>d</B>scan</A>
57
57
</H2>
58
 
    <code>freshclam</code> is the automatic database update tool for Clam AntiVirus.
59
 
    It can work in two modes:
 
58
    <code>clamdscan</code> is a simple <code>clamd</code> client. In many cases you can
 
59
    use it as a <code>clamscan</code> replacement however you must remember that:
60
60
    
61
61
<UL>
62
 
<LI>interactive - on demand from command line
63
 
</LI>
64
 
<LI>daemon - silently in the background
 
62
<LI>it only depends on <code>clamd</code>
 
63
</LI>
 
64
<LI>although it accepts the same command line options as
 
65
              <code>clamscan</code> most of them are ignored because they must be
 
66
              enabled directly in <code>clamd</code>, i.e. <code>clamd.conf</code>
 
67
</LI>
 
68
<LI>scanned files must be accessible for <code>clamd</code>
 
69
</LI>
 
70
<LI>it can't use external unpackers
65
71
    
66
72
</LI>
67
73
</UL>
68
 
    <code>freshclam</code> is advanced tool: it supports scripted updates (instead
69
 
    of transferring the whole CVD file at each update it only transfers the
70
 
    differences between the latest and the current database via a special
71
 
    script), database version checks through DNS, proxy servers (with
72
 
    authentication), digital signatures and various error scenarios.
73
 
    <SPAN  CLASS="textbf">Quick test: run freshclam (as superuser) with no parameters
74
 
    and check the output.</SPAN> If everything is OK you may create the log file in
75
 
    /var/log (owned by <SPAN  CLASS="textit">clamav</SPAN> or another user <code>freshclam</code> will be
76
 
    running as):
77
 
    <PRE>
78
 
        # touch /var/log/freshclam.log
79
 
        # chmod 600 /var/log/freshclam.log
80
 
        # chown clamav /var/log/freshclam.log
81
 
</PRE>
82
 
    Now you <SPAN  CLASS="textit">should</SPAN> edit the configuration file <code>freshclam.conf</code>
83
 
    and point the <SPAN  CLASS="textit">UpdateLogFile</SPAN> directive to the log file. Finally, to
84
 
    run <code>freshclam</code> in the daemon mode, execute:
85
 
    <PRE>
86
 
        # freshclam -d
87
 
</PRE>
88
 
    The other way is to use the <SPAN  CLASS="textit">cron</SPAN> daemon. You have to add the
89
 
    following line to the crontab of <SPAN  CLASS="textbf">root</SPAN> or <SPAN  CLASS="textbf">clamav</SPAN> user:
90
 
    <SMALL CLASS="SMALL">    </SMALL><PRE>
91
 
N * * * *       /usr/local/bin/freshclam --quiet
92
 
</PRE>
93
 
    to check for a new database every hour. <SPAN  CLASS="textbf">N should be a
94
 
    number between 3 and 57 of your choice. Please don't choose any multiple
95
 
    of 10, because there are already too many clients using those time slots.</SPAN>
96
 
    Proxy settings are only configurable via the configuration file and
97
 
    <code>freshclam</code> will require strict permission settings for the config
98
 
    file when <code>HTTPProxyPassword</code> is turned on.
99
 
    <PRE>
100
 
        HTTPProxyServer myproxyserver.com
101
 
        HTTPProxyPort 1234
102
 
        HTTPProxyUsername myusername
103
 
        HTTPProxyPassword mypass
104
 
</PRE>
105
74
 
106
75
<P>
107
76
<BR><HR>
108
 
<!--Table of Child-Links-->
109
 
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
110
 
 
111
 
<UL CLASS="ChildLinks">
112
 
<LI><A NAME="tex2html516"
113
 
  HREF="node25.html">Closest mirrors</A>
114
 
</UL>
115
 
<!--End of Table of Child-Links-->
116
 
 
117
 
<DIV CLASS="navigation"><HR>
118
 
<!--Navigation Panel-->
119
 
<A NAME="tex2html514"
120
 
  HREF="node25.html">
121
 
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
122
 
<A NAME="tex2html510"
123
 
  HREF="node19.html">
124
 
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
125
 
<A NAME="tex2html504"
126
 
  HREF="node23.html">
127
 
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
128
 
<A NAME="tex2html512"
129
 
  HREF="node1.html">
130
 
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
131
 
<BR>
132
 
<B> Next:</B> <A NAME="tex2html515"
133
 
  HREF="node25.html">Closest mirrors</A>
134
 
<B> Up:</B> <A NAME="tex2html511"
135
 
  HREF="node19.html">Configuration</A>
136
 
<B> Previous:</B> <A NAME="tex2html505"
137
 
  HREF="node23.html">Testing</A>
138
 
 &nbsp; <B>  <A NAME="tex2html513"
139
 
  HREF="node1.html">Contents</A></B> </DIV>
140
 
<!--End of Navigation Panel-->
141
77
<ADDRESS>
142
78
Tomasz Kojm
143
 
2010-08-12
 
79
2007-02-12
144
80
</ADDRESS>
145
81
</BODY>
146
82
</HTML>