/[gentoo]/xml/htdocs/doc/en/quick-samba-howto.xml
Gentoo

Diff of /xml/htdocs/doc/en/quick-samba-howto.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.9
1<?xml version = '1.0' encoding = 'UTF-8'?> 1<?xml version='1.0' encoding='UTF-8'?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/quick-samba-howto.xml,v 1.5 2004/05/30 13:24:49 neysx Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/quick-samba-howto.xml,v 1.9 2004/08/01 11:40:20 swift 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/Clam AV 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>
18 18
19<!-- The content of this document is licensed under the CC-BY-SA license --> 19<!-- The content of this document is licensed under the CC-BY-SA license -->
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.3</version> 23<version>1.6</version>
24<date>May 18, 2004</date> 24<date>August 01, 2004</date>
25 25
26<chapter> 26<chapter>
27<title>Introduction to this HOWTO</title> 27<title>Introduction to this HOWTO</title>
28<section> 28<section>
29<title>Purpose</title> 29<title>Purpose</title>
141We will need the following: 141We will need the following:
142</p> 142</p>
143 143
144<ul> 144<ul>
145 <li>net-fs/samba</li> 145 <li>net-fs/samba</li>
146 <li>net-mail/clamav</li> 146 <li>app-antivirus/clamav</li>
147 <li>net-print/cups</li> 147 <li>net-print/cups</li>
148 <li>net-print/foomatic</li> 148 <li>net-print/foomatic</li>
149 <li>net-print/hpijs (if you have an HP printer)</li> 149 <li>net-print/hpijs (if you have an HP printer)</li>
150 <li>A kernel of sorts (preferably 2.4.24+ or 2.6.x)</li> 150 <li>A kernel of sorts (preferably 2.4.24+ or 2.6.x)</li>
151 <li>A printer (PS or non-PS, maybe not TOO new or fancy)</li> 151 <li>A printer (PS or non-PS, maybe not TOO new or fancy)</li>
156 156
157<p> 157<p>
158The main package we use here is net-fs/samba, however, you will need 158The main package we use here is net-fs/samba, however, you will need
159a kernel with smbfs support enabled in order to mount a samba or windows 159a kernel with smbfs support enabled in order to mount a samba or windows
160share from another computer. CUPS will be emerged if it is not already. 160share from another computer. CUPS will be emerged if it is not already.
161net-mail/clamav will be used also, but others should be easily adapted 161app-antivirus/clamav will be used also, but others should be easily adapted
162to work with Samba. 162to work with Samba.
163</p> 163</p>
164 164
165</body> 165</body>
166</section> 166</section>
361virus scanning, the actual virus scanner must be emerged. The scanner 361virus scanning, the actual virus scanner must be emerged. The scanner
362used in this HOWTO is Clam AV. 362used in this HOWTO is Clam AV.
363</p> 363</p>
364 364
365<pre caption="Emerge clam-av"> 365<pre caption="Emerge clam-av">
366# <i>emerge net-mail/clamav</i> 366# <i>emerge app-antivirus/clamav</i>
367</pre> 367</pre>
368 368
369</body> 369</body>
370</section> 370</section>
371<section> 371<section>
445guest ok = yes 445guest ok = yes
446<comment># We now will implement the on access virus scanner. 446<comment># We now will implement the on access virus scanner.
447# NOTE: By putting this in our [Global] section, we enable 447# NOTE: By putting this in our [Global] section, we enable
448# scanning of ALL shares, you could optionally move 448# scanning of ALL shares, you could optionally move
449# these to a specific share and only scan it.</comment> 449# these to a specific share and only scan it.</comment>
450
451<comment># For Samba 3.x</comment>
452vfs object = vscan-clamav
453vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
454
455<comment># For Samba 2.2.x</comment>
450vfs object = /usr/lib/samba/vfs/vscan-clamav.so 456vfs object = /usr/lib/samba/vfs/vscan-clamav.so
451vfs options = config-file = /etc/samba/vscan-clamav.conf 457vfs options = config-file = /etc/samba/vscan-clamav.conf
452 458
453<comment># Now we setup our print drivers information!</comment> 459<comment># Now we setup our print drivers information!</comment>
454[print$] 460[print$]
536 542
537<p> 543<p>
538The Samba passwords need not be the same as the system passwords 544The Samba passwords need not be the same as the system passwords
539in <path>/etc/passwd</path>. 545in <path>/etc/passwd</path>.
540</p> 546</p>
547
548<p>
549You will also need to update <path>/etc/nsswitch.conf</path> so that Windows
550systems can be found easily using NetBIOS:
551</p>
552
553<pre caption="Editing /etc/nsswitch.conf">
554# <i>nano -w /etc/nsswitch.conf</i>
555<comment>(Edit the hosts: line)</comment>
556hosts: files dns <i>wins</i>
557</pre>
541 558
542</body> 559</body>
543</section> 560</section>
544<section> 561<section>
545<title>Configuring Clam AV</title> 562<title>Configuring Clam AV</title>

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20