Lines 2-8
Link Here
|
2 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/quick-samba-howto.xml,v 1.15 2004/12/21 18:12:19 neysx Exp $ --> |
2 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/quick-samba-howto.xml,v 1.15 2004/12/21 18:12:19 neysx Exp $ --> |
3 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
3 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
4 |
<guide link="quick-samba-howto.xml"> |
4 |
<guide link="quick-samba-howto.xml"> |
5 |
<title>Gentoo Samba3/CUPS/Clam AV HOWTO</title> |
5 |
<title>Gentoo Samba3/CUPS/ClamAV HOWTO</title> |
6 |
<author title="Author"> |
6 |
<author title="Author"> |
7 |
<mail link="daff at dword dot org">Andreas "daff" Ntaflos</mail> |
7 |
<mail link="daff at dword dot org">Andreas "daff" Ntaflos</mail> |
8 |
</author> |
8 |
</author> |
Lines 20-27
Link Here
|
20 |
<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
20 |
<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
21 |
<license/> |
21 |
<license/> |
22 |
|
22 |
|
23 |
<version>1.10</version> |
23 |
<version>1.11</version> |
24 |
<date>2004-12-21</date> |
24 |
<date>2005-02-07</date> |
25 |
|
25 |
|
26 |
<chapter> |
26 |
<chapter> |
27 |
<title>Introduction to this HOWTO</title> |
27 |
<title>Introduction to this HOWTO</title> |
Lines 109-115
Link Here
|
109 |
<ul> |
109 |
<ul> |
110 |
<li>On the Samba server: |
110 |
<li>On the Samba server: |
111 |
<ul> |
111 |
<ul> |
112 |
<li>Install and configure CLAM-AV</li> |
112 |
<li>Install and configure ClamAV</li> |
113 |
<li>Install and configure Samba</li> |
113 |
<li>Install and configure Samba</li> |
114 |
<li>Install and configure CUPS</li> |
114 |
<li>Install and configure CUPS</li> |
115 |
<li>Adding the printer to CUPS</li> |
115 |
<li>Adding the printer to CUPS</li> |
Lines 178-184
Link Here
|
178 |
</p> |
178 |
</p> |
179 |
|
179 |
|
180 |
<pre caption="Samba uses the following USE Variables:"> |
180 |
<pre caption="Samba uses the following USE Variables:"> |
181 |
kerberos mysql xml acl cups ldap pam readline python oav |
181 |
kerberos mysql xml acl cups ldap pam readline python oav libclamav |
182 |
</pre> |
182 |
</pre> |
183 |
|
183 |
|
184 |
<p> |
184 |
<p> |
Lines 276-281
Link Here
|
276 |
(SAVI), Symantec CarrierScan, and Trend Micro (VSAPI). |
276 |
(SAVI), Symantec CarrierScan, and Trend Micro (VSAPI). |
277 |
</ti> |
277 |
</ti> |
278 |
</tr> |
278 |
</tr> |
|
|
279 |
<tr> |
280 |
<th><b>libclamav</b></th> |
281 |
<ti> |
282 |
Enable ClamAV as virus scanner. |
283 |
</ti> |
284 |
</tr> |
279 |
</table> |
285 |
</table> |
280 |
|
286 |
|
281 |
<p> |
287 |
<p> |
Lines 329-334
Link Here
|
329 |
<li>cups</li> |
335 |
<li>cups</li> |
330 |
<li>readline</li> |
336 |
<li>readline</li> |
331 |
<li>pam</li> |
337 |
<li>pam</li> |
|
|
338 |
<li>libclamav</li> |
332 |
</ul> |
339 |
</ul> |
333 |
|
340 |
|
334 |
<p> |
341 |
<p> |
Lines 338-344
Link Here
|
338 |
|
345 |
|
339 |
<pre caption="Emerge Samba"> |
346 |
<pre caption="Emerge Samba"> |
340 |
<comment>(Note the USE flags!)</comment> |
347 |
<comment>(Note the USE flags!)</comment> |
341 |
# <i>USE="oav readline cups pam -python -ldap -kerberos -xml -acl -mysql" emerge net-fs/samba</i> |
348 |
# <i>USE="oav readline cups pam -python -ldap -kerberos -xml -acl -mysql libclamav" emerge net-fs/samba</i> |
342 |
</pre> |
349 |
</pre> |
343 |
|
350 |
|
344 |
<note> |
351 |
<note> |
Lines 353-368
Link Here
|
353 |
</body> |
360 |
</body> |
354 |
</section> |
361 |
</section> |
355 |
<section> |
362 |
<section> |
356 |
<title>Emerging Clam AV</title> |
363 |
<title>Emerging ClamAV</title> |
357 |
<body> |
364 |
<body> |
358 |
|
365 |
|
359 |
<p> |
366 |
<p> |
360 |
Because the <e>oav</e> USE flag only provides an interface to allow on access |
367 |
Because the <e>oav</e> USE flag only provides an interface to allow on access |
361 |
virus scanning, the actual virus scanner must be emerged. The scanner |
368 |
virus scanning, the actual virus scanner must be emerged. The scanner |
362 |
used in this HOWTO is Clam AV. |
369 |
used in this HOWTO is ClamAV. |
363 |
</p> |
370 |
</p> |
364 |
|
371 |
|
365 |
<pre caption="Emerge clam-av"> |
372 |
<pre caption="Emerge Clamav"> |
366 |
# <i>emerge app-antivirus/clamav</i> |
373 |
# <i>emerge app-antivirus/clamav</i> |
367 |
</pre> |
374 |
</pre> |
368 |
|
375 |
|
Lines 448-461
Link Here
|
448 |
# scanning of ALL shares, you could optionally move |
455 |
# scanning of ALL shares, you could optionally move |
449 |
# these to a specific share and only scan it.</comment> |
456 |
# these to a specific share and only scan it.</comment> |
450 |
|
457 |
|
451 |
<comment># For Samba 3.x</comment> |
458 |
<comment># For Samba 3.x. This enables ClamAV on access scanning.</comment> |
452 |
vfs object = vscan-clamav |
459 |
vfs object = vscan-clamav |
453 |
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf |
460 |
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf |
454 |
|
461 |
|
455 |
<comment># For Samba 2.2.x</comment> |
|
|
456 |
vfs object = /usr/lib/samba/vfs/vscan-clamav.so |
457 |
vfs options = config-file = /etc/samba/vscan-clamav.conf |
458 |
|
459 |
<comment># Now we setup our print drivers information!</comment> |
462 |
<comment># Now we setup our print drivers information!</comment> |
460 |
[print$] |
463 |
[print$] |
461 |
comment = Printer Drivers |
464 |
comment = Printer Drivers |
Lines 517-522
Link Here
|
517 |
protect you from a lot of problems. |
520 |
protect you from a lot of problems. |
518 |
</warn> |
521 |
</warn> |
519 |
|
522 |
|
|
|
523 |
<warn> |
524 |
Turning on ClamAV on access scanning in the <c>[global]</c> section will slow |
525 |
down the performance of your Samba server dramatically. |
526 |
</warn> |
527 |
|
520 |
<p> |
528 |
<p> |
521 |
Now create the directories required for the minimum configuration of |
529 |
Now create the directories required for the minimum configuration of |
522 |
Samba to share the installed printer throughout the network. |
530 |
Samba to share the installed printer throughout the network. |
Lines 560-566
Link Here
|
560 |
</body> |
568 |
</body> |
561 |
</section> |
569 |
</section> |
562 |
<section> |
570 |
<section> |
563 |
<title>Configuring Clam AV</title> |
571 |
<title>Configuring ClamAV</title> |
564 |
<body> |
572 |
<body> |
565 |
|
573 |
|
566 |
<p> |
574 |
<p> |
Lines 626-637
Link Here
|
626 |
lru file entry lifetime = 5 |
634 |
lru file entry lifetime = 5 |
627 |
|
635 |
|
628 |
<comment>; socket name of clamd (default: /var/run/clamd)</comment> |
636 |
<comment>; socket name of clamd (default: /var/run/clamd)</comment> |
629 |
clamd socket name = /var/run/clamd |
637 |
clamd socket name = /tmp/clamd |
|
|
638 |
|
639 |
<comment>; port number the ScannerDaemon listens on</comment> |
640 |
oav port = 8127 |
630 |
</pre> |
641 |
</pre> |
631 |
|
642 |
|
632 |
<p> |
643 |
<p> |
633 |
It is generally a good idea to start the virus scanner immediately. Add |
644 |
It is generally a good idea to start the virus scanner immediately. Add |
634 |
it to the <e>default</e> runlevel and then start the <c>clamd</c> service immediately. |
645 |
it to the <e>default</e> runlevel and then start the <c>clamd</c> service |
|
|
646 |
immediately. The service has two processes: freshclam keeps the virus definition |
647 |
database up to date while clamd is the actual anti-virus daemon. First you may |
648 |
want to set the paths of the logfiles so that it fits your needs. |
649 |
</p> |
650 |
|
651 |
<pre caption="Checking the location of the logfiles"> |
652 |
# <i>vim /etc/clamd.conf</i> |
653 |
<comment>(Check the line "LogFile /var/log/clamd.log")</comment> |
654 |
# <i>vim /etc/freshclam.conf</i> |
655 |
<comment>(Check the line "UpdateLogFile /var/log/freshclam.log")</comment> |
656 |
# <i>vim /etc/conf.d/clamd</i> |
657 |
<comment>(Set "START_CLAMD=yes" and "START_FRESHCLAM=yes")</comment> |
658 |
</pre> |
659 |
|
660 |
<p> |
661 |
Now fire up the virus scanner. |
635 |
</p> |
662 |
</p> |
636 |
|
663 |
|
637 |
<pre caption="Add clamd to bootup and start it"> |
664 |
<pre caption="Add clamd to bootup and start it"> |