Ignore:
Timestamp:
May 23, 2008, 6:56:41 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.29

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/docs/htmldocs/Samba3-HOWTO/VFS.html

    r44 r134  
    1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 23. Stackable VFS modules</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.0"><link rel="start" href="index.html" title="The Official Samba-3 HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="CUPS-printing.html" title="Chapter 22. CUPS Printing Support"><link rel="next" href="winbind.html" title="Chapter 24. Winbind: Use of Domain Accounts"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 23. Stackable VFS modules</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="CUPS-printing.html">Prev</a> </td><th width="60%" align="center">Part III. Advanced Configuration</th><td width="20%" align="right"> <a accesskey="n" href="winbind.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="VFS"></a>Chapter 23. Stackable VFS modules</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="surname">Vernooij</span></h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><code class="email">&lt;<a href="mailto:jelmer@samba.org">jelmer@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Tim</span> <span class="surname">Potter</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a href="mailto:tpot@samba.org">tpot@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Simo</span> <span class="surname">Sorce</span></h3><span class="contrib">original vfs_skel README</span></div></div><div><div class="author"><h3 class="author"><span class="firstname">Alexander</span> <span class="surname">Bokovoy</span></h3><span class="contrib">original vfs_netatalk docs</span></div></div><div><div class="author"><h3 class="author"><span class="firstname">Stefan</span> <span class="surname">Metzmacher</span></h3><span class="contrib">Update for multiple modules</span></div></div><div><div class="author"><h3 class="author"><span class="firstname">Ed</span> <span class="surname">Riddle</span></h3><span class="contrib">original shadow_copy docs</span></div></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="VFS.html#id408774">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="VFS.html#id408809">Discussion</a></span></dt><dt><span class="sect1"><a href="VFS.html#id409196">Included Modules</a></span></dt><dd><dl><dt><span class="sect2"><a href="VFS.html#id409202">audit</a></span></dt><dt><span class="sect2"><a href="VFS.html#id409241">default_quota</a></span></dt><dt><span class="sect2"><a href="VFS.html#id409434">extd_audit</a></span></dt><dt><span class="sect2"><a href="VFS.html#fakeperms">fake_perms</a></span></dt><dt><span class="sect2"><a href="VFS.html#id409730">recycle</a></span></dt><dt><span class="sect2"><a href="VFS.html#id410101">netatalk</a></span></dt><dt><span class="sect2"><a href="VFS.html#id410149">shadow_copy</a></span></dt></dl></dd><dt><span class="sect1"><a href="VFS.html#id410985">VFS Modules Available Elsewhere</a></span></dt><dd><dl><dt><span class="sect2"><a href="VFS.html#id411007">DatabaseFS</a></span></dt><dt><span class="sect2"><a href="VFS.html#id411059">vscan</a></span></dt></dl></dd></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id408774"></a>Features and Benefits</h2></div></div></div><p>
    2 <a class="indexterm" name="id408781"></a>
    3 <a class="indexterm" name="id408790"></a>
    4 <a class="indexterm" name="id408797"></a>
     1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 23. Stackable VFS modules</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="The Official Samba 3.2.x HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="CUPS-printing.html" title="Chapter 22. CUPS Printing Support"><link rel="next" href="winbind.html" title="Chapter 24. Winbind: Use of Domain Accounts"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 23. Stackable VFS modules</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="CUPS-printing.html">Prev</a> </td><th width="60%" align="center">Part III. Advanced Configuration</th><td width="20%" align="right"> <a accesskey="n" href="winbind.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="VFS"></a>Chapter 23. Stackable VFS modules</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="surname">Vernooij</span></h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jelmer@samba.org">jelmer@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Tim</span> <span class="surname">Potter</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:tpot@samba.org">tpot@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Simo</span> <span class="surname">Sorce</span></h3><span class="contrib">original vfs_skel README</span> </div></div><div><div class="author"><h3 class="author"><span class="firstname">Alexander</span> <span class="surname">Bokovoy</span></h3><span class="contrib">original vfs_netatalk docs</span> </div></div><div><div class="author"><h3 class="author"><span class="firstname">Stefan</span> <span class="surname">Metzmacher</span></h3><span class="contrib">Update for multiple modules</span> </div></div><div><div class="author"><h3 class="author"><span class="firstname">Ed</span> <span class="surname">Riddle</span></h3><span class="contrib">original shadow_copy docs</span> </div></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="VFS.html#id432386">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="VFS.html#id432421">Discussion</a></span></dt><dt><span class="sect1"><a href="VFS.html#id432802">Included Modules</a></span></dt><dd><dl><dt><span class="sect2"><a href="VFS.html#id432808">audit</a></span></dt><dt><span class="sect2"><a href="VFS.html#id432847">default_quota</a></span></dt><dt><span class="sect2"><a href="VFS.html#id433040">extd_audit</a></span></dt><dt><span class="sect2"><a href="VFS.html#fakeperms">fake_perms</a></span></dt><dt><span class="sect2"><a href="VFS.html#id433348">recycle</a></span></dt><dt><span class="sect2"><a href="VFS.html#id433719">netatalk</a></span></dt><dt><span class="sect2"><a href="VFS.html#id433767">shadow_copy</a></span></dt></dl></dd><dt><span class="sect1"><a href="VFS.html#id434600">VFS Modules Available Elsewhere</a></span></dt><dd><dl><dt><span class="sect2"><a href="VFS.html#id434622">DatabaseFS</a></span></dt><dt><span class="sect2"><a href="VFS.html#id434675">vscan</a></span></dt><dt><span class="sect2"><a href="VFS.html#id434712">vscan-clamav</a></span></dt></dl></dd></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id432386"></a>Features and Benefits</h2></div></div></div><p>
     2<a class="indexterm" name="id432394"></a>
     3<a class="indexterm" name="id432403"></a>
     4<a class="indexterm" name="id432410"></a>
    55Stackable VFS (Virtual File System) modules support was new to Samba-3 and has proven quite popular. Samba
    66passes each request to access the UNIX file system through the loaded VFS modules. This chapter covers the
    77modules that come with the Samba source and provides references to some external modules.
    8 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id408809"></a>Discussion</h2></div></div></div><p>
    9 <a class="indexterm" name="id408816"></a>
    10 <a class="indexterm" name="id408823"></a>
     8</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id432421"></a>Discussion</h2></div></div></div><p>
     9<a class="indexterm" name="id432429"></a>
     10<a class="indexterm" name="id432436"></a>
    1111If not supplied with your platform distribution binary Samba package, you may have problems compiling these
    1212modules, as shared libraries are compiled and linked in different ways on different systems. They currently
    1313have been tested against GNU/Linux and IRIX.
    1414</p><p>
    15 <a class="indexterm" name="id408836"></a>
    16 <a class="indexterm" name="id408842"></a>
    17 <a class="indexterm" name="id408849"></a>
    18 To use the VFS modules, create a share similar to the one below. The important parameter is the <a class="indexterm" name="id408857"></a>vfs objects parameter where you can list one or more VFS modules by name. For example, to log all
    19 access to files and put deleted files in a recycle bin, see <a href="VFS.html#vfsrecyc" title="Example 23.1. smb.conf with VFS modules">the smb.conf with VFS
     15<a class="indexterm" name="id432448"></a>
     16<a class="indexterm" name="id432455"></a>
     17<a class="indexterm" name="id432462"></a>
     18To use the VFS modules, create a share similar to the one below. The important parameter is the <a class="link" href="smb.conf.5.html#VFSOBJECTS">vfs objects</a> parameter where you can list one or more VFS modules by name. For example, to log all
     19access to files and put deleted files in a recycle bin, see <a class="link" href="VFS.html#vfsrecyc" title="Example 23.1. smb.conf with VFS modules">the smb.conf with VFS
    2020modules example</a>:
    21 </p><div class="example"><a name="vfsrecyc"></a><p class="title"><b>Example 23.1. smb.conf with VFS modules</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[audit]</code></em></td></tr><tr><td><a class="indexterm" name="id408898"></a><em class="parameter"><code>comment = Audited /data directory</code></em></td></tr><tr><td><a class="indexterm" name="id408911"></a><em class="parameter"><code>path = /data</code></em></td></tr><tr><td><a class="indexterm" name="id408923"></a><em class="parameter"><code>vfs objects = audit recycle</code></em></td></tr><tr><td><a class="indexterm" name="id408936"></a><em class="parameter"><code>writeable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id408948"></a><em class="parameter"><code>browseable = yes</code></em></td></tr></table></div></div><br class="example-break"><p>
    22 <a class="indexterm" name="id408964"></a>
    23 <a class="indexterm" name="id408971"></a>
    24 <a class="indexterm" name="id408978"></a>
     21</p><div class="example"><a name="vfsrecyc"></a><p class="title"><b>Example 23.1. smb.conf with VFS modules</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[audit]</code></em></td></tr><tr><td><a class="indexterm" name="id432515"></a><em class="parameter"><code>comment = Audited /data directory</code></em></td></tr><tr><td><a class="indexterm" name="id432526"></a><em class="parameter"><code>path = /data</code></em></td></tr><tr><td><a class="indexterm" name="id432538"></a><em class="parameter"><code>vfs objects = audit recycle</code></em></td></tr><tr><td><a class="indexterm" name="id432549"></a><em class="parameter"><code>writeable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id432561"></a><em class="parameter"><code>browseable = yes</code></em></td></tr></table></div></div><br class="example-break"><p>
     22<a class="indexterm" name="id432576"></a>
     23<a class="indexterm" name="id432582"></a>
     24<a class="indexterm" name="id432589"></a>
    2525The modules are used in the order in which they are specified.  Let's say that you want to both have a virus
    2626scanner module and a recycle bin module. It is wise to put the virus scanner module as the first one so that
    2727it is the first to get run and may detect a virus immediately, before any action is performed on that file.
    28 <a class="indexterm" name="id408987"></a>vfs objects = vscan-clamav recycle
    29 </p><p>
    30 <a class="indexterm" name="id408998"></a>
    31 <a class="indexterm" name="id409005"></a>
     28<a class="link" href="smb.conf.5.html#VFSOBJECTS">vfs objects = vscan-clamav recycle</a>
     29</p><p>
     30<a class="indexterm" name="id432613"></a>
     31<a class="indexterm" name="id432620"></a>
    3232Samba will attempt to load modules from the <code class="filename">/lib</code> directory in the root directory of the
    3333Samba installation (usually <code class="filename">/usr/lib/samba/vfs</code> or
    3434<code class="filename">/usr/local/samba/lib/vfs</code>).
    3535</p><p>
    36 <a class="indexterm" name="id409034"></a>
    37 <a class="indexterm" name="id409040"></a>
    38 <a class="indexterm" name="id409047"></a>
    39 <a class="indexterm" name="id409054"></a>
     36<a class="indexterm" name="id432648"></a>
     37<a class="indexterm" name="id432655"></a>
     38<a class="indexterm" name="id432661"></a>
     39<a class="indexterm" name="id432668"></a>
    4040Some modules can be used twice for the same share.  This can be done using a configuration similar to the one
    41 shown in <a href="VFS.html#multimodule" title="Example 23.2. smb.conf with multiple VFS modules">the smb.conf with multiple VFS modules</a>.
    42 
    43 </p><div class="example"><a name="multimodule"></a><p class="title"><b>Example 23.2. smb.conf with multiple VFS modules</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[test]</code></em></td></tr><tr><td><a class="indexterm" name="id409092"></a><em class="parameter"><code>comment = VFS TEST</code></em></td></tr><tr><td><a class="indexterm" name="id409105"></a><em class="parameter"><code>path = /data</code></em></td></tr><tr><td><a class="indexterm" name="id409118"></a><em class="parameter"><code>writeable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id409130"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id409143"></a><em class="parameter"><code>vfs objects = example:example1 example example:test</code></em></td></tr><tr><td><a class="indexterm" name="id409155"></a><em class="parameter"><code>example1: parameter = 1</code></em></td></tr><tr><td><a class="indexterm" name="id409168"></a><em class="parameter"><code>example:  parameter = 5</code></em></td></tr><tr><td><a class="indexterm" name="id409180"></a><em class="parameter"><code>test:     parameter = 7</code></em></td></tr></table></div></div><p><br class="example-break">
    44 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id409196"></a>Included Modules</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id409202"></a>audit</h3></div></div></div><p>
    45 <a class="indexterm" name="id409210"></a>
     41shown in <a class="link" href="VFS.html#multimodule" title="Example 23.2. smb.conf with multiple VFS modules">the smb.conf with multiple VFS modules</a>.
     42
     43</p><div class="example"><a name="multimodule"></a><p class="title"><b>Example 23.2. smb.conf with multiple VFS modules</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[test]</code></em></td></tr><tr><td><a class="indexterm" name="id432707"></a><em class="parameter"><code>comment = VFS TEST</code></em></td></tr><tr><td><a class="indexterm" name="id432718"></a><em class="parameter"><code>path = /data</code></em></td></tr><tr><td><a class="indexterm" name="id432730"></a><em class="parameter"><code>writeable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id432741"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id432753"></a><em class="parameter"><code>vfs objects = example:example1 example example:test</code></em></td></tr><tr><td><a class="indexterm" name="id432765"></a><em class="parameter"><code>example1: parameter = 1</code></em></td></tr><tr><td><a class="indexterm" name="id432776"></a><em class="parameter"><code>example:  parameter = 5</code></em></td></tr><tr><td><a class="indexterm" name="id432788"></a><em class="parameter"><code>test:     parameter = 7</code></em></td></tr></table></div></div><p><br class="example-break">
     44</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id432802"></a>Included Modules</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id432808"></a>audit</h3></div></div></div><p>
     45<a class="indexterm" name="id432816"></a>
    4646                A simple module to audit file access to the syslog facility. The following operations are logged:
    4747                </p><div class="itemizedlist"><ul type="disc"><li><p>share</p></li><li><p>connect/disconnect</p></li><li><p>directory opens/create/remove</p></li><li><p>file open/close/rename/unlink/chmod</p></li></ul></div><p>
    48                 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id409241"></a>default_quota</h3></div></div></div><p>
     48                </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id432847"></a>default_quota</h3></div></div></div><p>
    4949        This module allows the default quota values, in the windows explorer GUI, to be stored on a Samba-3 server.
    5050        The challenge is that linux filesystems only store quotas for users and groups, but no default quotas.
     
    118118...
    119119</pre><p>
    120         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id409434"></a>extd_audit</h3></div></div></div><p>
    121 <a class="indexterm" name="id409442"></a>
    122 <a class="indexterm" name="id409449"></a>
    123 <a class="indexterm" name="id409456"></a>
     120        </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id433040"></a>extd_audit</h3></div></div></div><p>
     121<a class="indexterm" name="id433048"></a>
     122<a class="indexterm" name="id433055"></a>
     123<a class="indexterm" name="id433062"></a>
    124124                This module is identical with the <code class="literal">audit</code> module above except
    125125                that it sends audit logs to both syslog as well as the <code class="literal">smbd</code> log files. The
    126                 <a class="indexterm" name="id409475"></a>log level for this module is set in the <code class="filename">smb.conf</code> file.
     126                <a class="link" href="smb.conf.5.html#LOGLEVEL">log level</a> for this module is set in the <code class="filename">smb.conf</code> file.
    127127                </p><p>
    128                 Valid settings and the information that will be recorded are shown in <a href="VFS.html#xtdaudit" title="Table 23.1. Extended Auditing Log Information">the next table</a>.
    129                 </p><div class="table"><a name="xtdaudit"></a><p class="title"><b>Table 23.1. Extended Auditing Log Information</b></p><div class="table-contents"><table summary="Extended Auditing Log Information" border="1"><colgroup><col><col></colgroup><thead><tr><th align="center">Log Level</th><th align="center">Log Details - File and Directory Operations</th></tr></thead><tbody><tr><td align="center">0</td><td align="left">Make Directory, Remove Directory, Unlink</td></tr><tr><td align="center">1</td><td align="left">Open Directory, Rename File, Change Permissions/ACLs</td></tr><tr><td align="center">2</td><td align="left">Open &amp; Close File</td></tr><tr><td align="center">10</td><td align="left">Maximum Debug Level</td></tr></tbody></table></div></div><br class="table-break"><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id409582"></a>Configuration of Auditing</h4></div></div></div><p>
    130 <a class="indexterm" name="id409590"></a>
     128                Valid settings and the information that will be recorded are shown in <a class="link" href="VFS.html#xtdaudit" title="Table 23.1. Extended Auditing Log Information">the next table</a>.
     129                </p><div class="table"><a name="xtdaudit"></a><p class="title"><b>Table 23.1. Extended Auditing Log Information</b></p><div class="table-contents"><table summary="Extended Auditing Log Information" border="1"><colgroup><col><col></colgroup><thead><tr><th align="center">Log Level</th><th align="center">Log Details - File and Directory Operations</th></tr></thead><tbody><tr><td align="center">0</td><td align="left">Make Directory, Remove Directory, Unlink</td></tr><tr><td align="center">1</td><td align="left">Open Directory, Rename File, Change Permissions/ACLs</td></tr><tr><td align="center">2</td><td align="left">Open &amp; Close File</td></tr><tr><td align="center">10</td><td align="left">Maximum Debug Level</td></tr></tbody></table></div></div><br class="table-break"><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id433192"></a>Configuration of Auditing</h4></div></div></div><p>
     130<a class="indexterm" name="id433200"></a>
    131131                This auditing tool is more felxible than most people readily will recognize. There are a number of ways
    132132                by which useful logging information can be recorded.
     
    140140                                        <em class="parameter"><code>log file</code></em> settings.</p><p>An example of detailed per-user and per-machine logging can
    141141                                        be obtained by setting
    142                                         <a class="indexterm" name="id409658"></a>log file = /var/log/samba/%U.%m.log.
     142                                        <a class="link" href="smb.conf.5.html#LOGFILE">log file = /var/log/samba/%U.%m.log</a>.
    143143                                        </p></li></ul></div><p>
    144144                Auditing information often must be preserved for a long time. So that the log files do not get rotated
    145                 it is essential that the <a class="indexterm" name="id409670"></a>max log size = 0 be set
     145                it is essential that the <a class="link" href="smb.conf.5.html#MAXLOGSIZE">max log size = 0</a> be set
    146146                in the <code class="filename">smb.conf</code> file.
    147147                </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="fakeperms"></a>fake_perms</h3></div></div></div><p>
    148 <a class="indexterm" name="id409698"></a>
    149 <a class="indexterm" name="id409705"></a>
    150 <a class="indexterm" name="id409711"></a>
    151 <a class="indexterm" name="id409718"></a>
     148<a class="indexterm" name="id433316"></a>
     149<a class="indexterm" name="id433323"></a>
     150<a class="indexterm" name="id433329"></a>
     151<a class="indexterm" name="id433336"></a>
    152152                This module was created to allow Roaming Profile files and directories to be set (on the Samba server
    153153                under UNIX) as read only. This module will, if installed on the Profiles share, report to the client
    154154                that the Profile files and directories are writeable. This satisfies the client even though the files
    155155                will never be overwritten as the client logs out or shuts down.
    156                 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id409730"></a>recycle</h3></div></div></div><p>
    157 <a class="indexterm" name="id409738"></a>
    158 <a class="indexterm" name="id409745"></a>
    159 <a class="indexterm" name="id409752"></a>
     156                </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id433348"></a>recycle</h3></div></div></div><p>
     157<a class="indexterm" name="id433356"></a>
     158<a class="indexterm" name="id433363"></a>
     159<a class="indexterm" name="id433370"></a>
    160160                A Recycle Bin-like module. Where used, unlink calls will be intercepted and files moved
    161161                to the recycle directory instead of being deleted. This gives the same effect as the
    162162                <span class="guiicon">Recycle Bin</span> on Windows computers.
    163163                </p><p>
    164 <a class="indexterm" name="id409770"></a>
    165 <a class="indexterm" name="id409776"></a>
    166 <a class="indexterm" name="id409783"></a>
    167 <a class="indexterm" name="id409790"></a>
     164<a class="indexterm" name="id433388"></a>
     165<a class="indexterm" name="id433394"></a>
     166<a class="indexterm" name="id433401"></a>
     167<a class="indexterm" name="id433408"></a>
    168168                The <span class="guiicon">Recycle Bin</span> will not appear in
    169169                <span class="application">Windows Explorer</span> views of the network
     
    180180                </p><p>Supported options for the <code class="literal">recycle</code> module are as follow:
    181181                </p><div class="variablelist"><dl><dt><span class="term">recycle:repository</span></dt><dd><p>
    182 <a class="indexterm" name="id409862"></a>
     182<a class="indexterm" name="id433480"></a>
    183183                                Path of the directory where deleted files should be moved.
    184184                                </p></dd><dt><span class="term">recycle:directory_mode</span></dt><dd><p>
    185 <a class="indexterm" name="id409881"></a>
     185<a class="indexterm" name="id433499"></a>
    186186                                Set it to the octal mode you want for the recycle directory. With
    187187                                this mode the recycle directory will be created if it not
     
    192192                                mode 0700 is used.
    193193                                </p></dd><dt><span class="term">recycle:subdir_mode</span></dt><dd><p>
    194 <a class="indexterm" name="id409913"></a>
     194<a class="indexterm" name="id433531"></a>
    195195                                Set it to the octal mode you want for the sub directories of
    196196                                the recycle directory. With this mode   the sub directories will
     
    200200                                <em class="parameter"><code>directory_mode</code></em>.
    201201                                </p></dd><dt><span class="term">recycle:keeptree</span></dt><dd><p>
    202 <a class="indexterm" name="id409945"></a>
     202<a class="indexterm" name="id433563"></a>
    203203                                Specifies whether the directory structure should be kept or if the files in the directory that is being
    204204                                deleted should be kept separately in the recycle bin.
    205205                                </p></dd><dt><span class="term">recycle:versions</span></dt><dd><p>
    206 <a class="indexterm" name="id409964"></a>
     206<a class="indexterm" name="id433582"></a>
    207207                                If this option is set, two files
    208208                                with the same name that are deleted will both
     
    210210                                of a file will be called &#8220;<span class="quote">Copy #x of <em class="replaceable"><code>filename</code></em></span>&#8221;.
    211211                                </p></dd><dt><span class="term">recycle:touch</span></dt><dd><p>
    212 <a class="indexterm" name="id409990"></a>
     212<a class="indexterm" name="id433608"></a>
    213213                                Specifies whether a file's access date should be touched when the file is moved to the recycle bin.
    214214                                </p></dd><dt><span class="term">recycle:touch_mtime</span></dt><dd><p>
    215 <a class="indexterm" name="id410008"></a>
     215<a class="indexterm" name="id433626"></a>
    216216                                Specifies whether a file's last modify date date should be touched when the file is moved to the recycle bin.
    217217                                </p></dd><dt><span class="term">recycle:maxsize</span></dt><dd><p>
    218 <a class="indexterm" name="id410027"></a>
     218<a class="indexterm" name="id433645"></a>
    219219                                Files that are larger than the number of bytes specified by this parameter will not be put into the recycle bin.
    220220                                </p></dd><dt><span class="term">recycle:exclude</span></dt><dd><p>
    221 <a class="indexterm" name="id410046"></a>
     221<a class="indexterm" name="id433664"></a>
    222222                                List of files that should not be put into the recycle bin when deleted, but deleted in the regular way.
    223223                                </p></dd><dt><span class="term">recycle:exclude_dir</span></dt><dd><p>
    224 <a class="indexterm" name="id410065"></a>
     224<a class="indexterm" name="id433683"></a>
    225225                                Contains a list of directories. When files from these directories are
    226226                                deleted, they are not put into the
     
    228228                                regular way.
    229229                                </p></dd><dt><span class="term">recycle:noversions</span></dt><dd><p>
    230 <a class="indexterm" name="id410084"></a>
     230<a class="indexterm" name="id433702"></a>
    231231                                Specifies a list of paths (wildcards such as * and ? are supported) for which no versioning
    232232                                should be used. Only useful when <span class="emphasis"><em>recycle:versions</em></span> is enabled.
    233233                                </p></dd></dl></div><p>
    234                 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id410101"></a>netatalk</h3></div></div></div><p>
    235 <a class="indexterm" name="id410109"></a>
     234                </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id433719"></a>netatalk</h3></div></div></div><p>
     235<a class="indexterm" name="id433727"></a>
    236236                A netatalk module will ease co-existence of Samba and netatalk file sharing services.
    237237                </p><p>Advantages compared to the old netatalk module:
    238                 </p><div class="itemizedlist"><a class="indexterm" name="id410123"></a><ul type="disc"><li><p>Does not care about creating .AppleDouble forks, just keeps them in sync.</p></li><li><p>If a share in <code class="filename">smb.conf</code> does not contain .AppleDouble item in hide or veto list, it will be added automatically.</p></li></ul></div><p>
    239                 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id410149"></a>shadow_copy</h3></div></div></div><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
    240 <a class="indexterm" name="id410158"></a>
     238                </p><div class="itemizedlist"><a class="indexterm" name="id433741"></a><ul type="disc"><li><p>Does not care about creating .AppleDouble forks, just keeps them in sync.</p></li><li><p>If a share in <code class="filename">smb.conf</code> does not contain .AppleDouble item in hide or veto list, it will be added automatically.</p></li></ul></div><p>
     239                </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id433767"></a>shadow_copy</h3></div></div></div><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
     240<a class="indexterm" name="id433776"></a>
    241241        <span class="emphasis"><em>THIS IS NOT A BACKUP, ARCHIVAL, OR VERSION CONTROL SOLUTION!</em></span>
    242242        </p><p>
    243 <a class="indexterm" name="id410172"></a>
     243<a class="indexterm" name="id433790"></a>
    244244        With Samba or Windows servers, shadow_copy is designed to be an end-user tool only.  It does not replace or
    245245        enhance your backup and archival solutions and should in no way be considered as such.  Additionally, if you
     
    248248        The shadow_copy module allows you to setup functionality that is similar to MS shadow copy services.  When
    249249        setup properly, this module allows Microsoft shadow copy clients to browse "shadow copies" on Samba shares.
    250         You will need to install the shadow copy client.  You can get the MS shadow copy client <a href="http://www.microsoft.com/windowsserver2003/downloads/shadowcopyclient.mspx" target="_top">here.</a>.  Note the
     250        You will need to install the shadow copy client.  You can get the MS shadow copy client <a class="ulink" href="http://www.microsoft.com/windowsserver2003/downloads/shadowcopyclient.mspx" target="_top">here.</a>.  Note the
    251251        additional requirements for pre-Windows XP clients.  I did not test this functionality with any pre-Windows XP
    252         clients.  You should be able to get more information about MS Shadow Copy <a href="http://www.microsoft.com/windowsserver2003/techinfo/overview/scr.mspx" target="_top">from the Microsoft's site</a>.
     252        clients.  You should be able to get more information about MS Shadow Copy <a class="ulink" href="http://www.microsoft.com/windowsserver2003/techinfo/overview/scr.mspx" target="_top">from the Microsoft's site</a>.
    253253        </p><p>
    254 <a class="indexterm" name="id410208"></a>
    255 <a class="indexterm" name="id410215"></a>
    256 <a class="indexterm" name="id410222"></a>
    257 <a class="indexterm" name="id410229"></a>
    258 <a class="indexterm" name="id410235"></a>
    259 <a class="indexterm" name="id410242"></a>
     254<a class="indexterm" name="id433826"></a>
     255<a class="indexterm" name="id433833"></a>
     256<a class="indexterm" name="id433840"></a>
     257<a class="indexterm" name="id433847"></a>
     258<a class="indexterm" name="id433853"></a>
     259<a class="indexterm" name="id433860"></a>
    260260        The shadow_copy VFS module requires some underlying file system setup with some sort of Logical Volume Manager
    261261        (LVM) such as LVM1, LVM2, or EVMS.  Setting up LVM is beyond the scope of this document; however, we will
     
    265265        </p><p>
    266266        Here are some common resources for LVM and EVMS:
    267         </p><div class="itemizedlist"><ul type="disc"><li><p><a href="http://www.sistina.com/products_lvm_download.htm" target="_top">Sistina's
    268             LVM1 and LVM2</a></p></li><li><p><a href="http://evms.sourceforge.net/" target="_top">Enterprise Volume Management System (EVMS)</a></p></li><li><p><a href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_top">The LVM HOWTO</a></p></li><li><p>
    269               See <a href="http://www-106.ibm.com/developerworks/linux/library/l-lvm/" target="_top">Learning
    270               Linux LVM, Part 1</a> and <a href="http://www-106.ibm.com/developerworks/library/l-lvm2.html" target="_top">Learning
     267        </p><div class="itemizedlist"><ul type="disc"><li><p><a class="ulink" href="http://www.sistina.com/products_lvm_download.htm" target="_top">Sistina's
     268            LVM1 and LVM2</a></p></li><li><p><a class="ulink" href="http://evms.sourceforge.net/" target="_top">Enterprise Volume Management System (EVMS)</a></p></li><li><p><a class="ulink" href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_top">The LVM HOWTO</a></p></li><li><p>
     269              See <a class="ulink" href="http://www-106.ibm.com/developerworks/linux/library/l-lvm/" target="_top">Learning
     270              Linux LVM, Part 1</a> and <a class="ulink" href="http://www-106.ibm.com/developerworks/library/l-lvm2.html" target="_top">Learning
    271271              Linux LWM, Part 2</a> for Daniel Robbins' well-written, two part tutorial on Linux and LVM using LVM
    272               source code and reiserfs.</p></li></ul></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id410320"></a>Shadow Copy Setup</h4></div></div></div><p>
    273 <a class="indexterm" name="id410327"></a>
    274 <a class="indexterm" name="id410334"></a>
     272              source code and reiserfs.</p></li></ul></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id433938"></a>Shadow Copy Setup</h4></div></div></div><p>
     273<a class="indexterm" name="id433945"></a>
     274<a class="indexterm" name="id433952"></a>
    275275        At the time of this writing, not much testing has been done.  I tested the shadow copy VFS module with a
    276276        specific scenario which was not deployed in a production environment, but more as a proof of concept.  The
     
    279279        here.  That said, following is an basic outline of how I got things going.
    280280        </p><div class="orderedlist"><ol type="1"><li><p><b>Installed Operating System . </b>
    281                 In my tests, I used <a href="http://www.debian.org/devel/debian-installer/" target="_top">Debian
     281                In my tests, I used <a class="ulink" href="http://www.debian.org/devel/debian-installer/" target="_top">Debian
    282282                Sarge</a> (i.e., testing) on an XFS file system.  Setting up the OS is a bit beyond the scope of this
    283283                document.  It is assumed that you have a working OS capable of running Samba.
    284284                </p></li><li><p><b>Install &amp; Configure Samba. </b>
    285                 See the <a href="introduction.html" title="Part I. General Installation">installation section</a> of this HOWTO for more detail on this.
     285                See the <a class="link" href="introduction.html" title="Part I. General Installation">installation section</a> of this HOWTO for more detail on this.
    286286                It doesn't matter if it is a Domain Controller or Member File Server, but it is assumed that you have a
    287287                working Samba 3.0.3 or later server running.
    288288                </p></li><li><p><b>Install &amp; Configure LVM. </b>
    289 <a class="indexterm" name="id410402"></a>
    290 <a class="indexterm" name="id410409"></a>
     289<a class="indexterm" name="id434020"></a>
     290<a class="indexterm" name="id434027"></a>
    291291                Before you can make shadow copies available to the client, you have to create the shadow copies.  This is
    292292                done by taking some sort of file system snapshot.  Snapshots are a typical feature of Logical Volume
     
    296296                using the "testing" or "Sarge" distribution.
    297297                </p><ul type="disc"><li><p>
    298 <a class="indexterm" name="id410430"></a>
    299 <a class="indexterm" name="id410437"></a>
    300 <a class="indexterm" name="id410444"></a>
    301 <a class="indexterm" name="id410451"></a>
    302 <a class="indexterm" name="id410458"></a>
     298<a class="indexterm" name="id434048"></a>
     299<a class="indexterm" name="id434055"></a>
     300<a class="indexterm" name="id434062"></a>
     301<a class="indexterm" name="id434069"></a>
     302<a class="indexterm" name="id434076"></a>
    303303                        Install lvm10 and devfsd packages if you have not done so already.  On Debian systems, you are warned of the
    304304                        interaction of devfs and lvm1 which requires the use of devfs filenames.  Running <code class="literal">apt-get update
    305305                        &amp;&amp; apt-get install lvm10 devfsd xfsprogs</code> should do the trick for this example.
    306306                        </p></li><li><p>
    307 <a class="indexterm" name="id410478"></a>
    308 <a class="indexterm" name="id410485"></a>
    309 <a class="indexterm" name="id410492"></a>
    310 <a class="indexterm" name="id410498"></a>
    311 <a class="indexterm" name="id410505"></a>
     307<a class="indexterm" name="id434096"></a>
     308<a class="indexterm" name="id434103"></a>
     309<a class="indexterm" name="id434110"></a>
     310<a class="indexterm" name="id434116"></a>
     311<a class="indexterm" name="id434123"></a>
    312312                        Now you need to create a volume.  You will need to create a partition (or partitions) to add to your volume.
    313313                        Use your favorite partitioning tool (e.g., Linux fdisk, cfdisk, etc.).  The partition type should be set to
    314314                        0x8e for "Linux LVM."  In this example, we will use /dev/hdb1.
    315315                        </p><p>
    316 <a class="indexterm" name="id410518"></a>
    317 <a class="indexterm" name="id410524"></a>
    318 <a class="indexterm" name="id410531"></a>
     316<a class="indexterm" name="id434136"></a>
     317<a class="indexterm" name="id434142"></a>
     318<a class="indexterm" name="id434149"></a>
    319319                        Once you have the Linux LVM partition (type 0x8e), you can run a series of commands to create the LVM volume.
    320320                        You can use several disks and/or partitions, but we will use only one in this example.  You may also need to
     
    322322                        it on reboot by adding it to (<code class="filename">/etc/modules</code>).
    323323                        </p></li><li><p>
    324 <a class="indexterm" name="id410557"></a>
     324<a class="indexterm" name="id434175"></a>
    325325                        Create the physical volume with <code class="literal">pvcreate /dev/hdb1</code>
    326326                        </p></li><li><p>
    327 <a class="indexterm" name="id410574"></a>
    328 <a class="indexterm" name="id410581"></a>
     327<a class="indexterm" name="id434192"></a>
     328<a class="indexterm" name="id434199"></a>
    329329                        Create the volume group and add /dev/hda1 to it with <code class="literal">vgcreate shadowvol /dev/hdb1</code>
    330330                        </p><p>
    331 <a class="indexterm" name="id410598"></a>
     331<a class="indexterm" name="id434216"></a>
    332332                        You can use <code class="literal">vgdisplay</code> to review information about the volume group.
    333333                        </p></li><li><p>
    334 <a class="indexterm" name="id410615"></a>
     334<a class="indexterm" name="id434233"></a>
    335335                        Now you can create the logical volume with something like <code class="literal">lvcreate -L400M -nsh_test shadowvol</code>
    336336                        </p><p>
    337 <a class="indexterm" name="id410632"></a>
     337<a class="indexterm" name="id434250"></a>
    338338                        This creates the logical volume of 400 MBs named "sh_test" in the volume group we created called shadowvol.
    339339                        If everything is working so far, you should see them in <code class="filename">/dev/shadowvol</code>.
    340340                        </p></li><li><p>
    341 <a class="indexterm" name="id410650"></a>
     341<a class="indexterm" name="id434268"></a>
    342342                        Now we should be ready to format the logical volume we named sh_test with <code class="literal">mkfs.xfs
    343343                        /dev/shadowvol/sh_test</code>
    344344                        </p><p>
    345 <a class="indexterm" name="id410667"></a>
    346 <a class="indexterm" name="id410674"></a>
    347 <a class="indexterm" name="id410680"></a>
    348 <a class="indexterm" name="id410687"></a>
    349 <a class="indexterm" name="id410694"></a>
     345<a class="indexterm" name="id434285"></a>
     346<a class="indexterm" name="id434292"></a>
     347<a class="indexterm" name="id434298"></a>
     348<a class="indexterm" name="id434305"></a>
     349<a class="indexterm" name="id434312"></a>
    350350                        You can format the logical volume with any file system you choose, but make sure to use one that allows you to
    351351                        take advantage of the additional features of LVM such as freezing, resizing, and growing your file systems.
    352352                        </p><p>
    353 <a class="indexterm" name="id410706"></a>
    354 <a class="indexterm" name="id410713"></a>
    355 <a class="indexterm" name="id410720"></a>
     353<a class="indexterm" name="id434324"></a>
     354<a class="indexterm" name="id434331"></a>
     355<a class="indexterm" name="id434338"></a>
    356356                        Now we have an LVM volume where we can play with the shadow_copy VFS module.
    357357                        </p></li><li><p>
    358 <a class="indexterm" name="id410732"></a>
    359 <a class="indexterm" name="id410738"></a>
    360 <a class="indexterm" name="id410745"></a>
     358<a class="indexterm" name="id434350"></a>
     359<a class="indexterm" name="id434356"></a>
     360<a class="indexterm" name="id434363"></a>
    361361                        Now we need to prepare the directory with something like
    362362</p><pre class="screen">
     
    367367                        once you get things working.
    368368                        </p></li><li><p>
    369 <a class="indexterm" name="id410776"></a>
     369<a class="indexterm" name="id434394"></a>
    370370                        Mount the LVM volume using something like <code class="literal">mount /dev/shadowvol/sh_test /data/shadow_share</code>
    371371                        </p><p>
    372 <a class="indexterm" name="id410793"></a>
     372<a class="indexterm" name="id434411"></a>
    373373                        You may also want to edit your <code class="filename">/etc/fstab</code> so that this partition mounts during the system boot.
    374374                        </p></li></ul></div></li><li><p><b>Install &amp; Configure the shadow_copy VFS Module. </b>
     
    376376                3.0.3 and higher.  The smb.conf configuration is pretty standard.  Here is our example of a share configured
    377377                with the shadow_copy VFS module:
    378                 </p><div class="example"><a name="vfsshadow"></a><p class="title"><b>Example 23.3. Share With shadow_copy VFS</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[shadow_share]</code></em></td></tr><tr><td><a class="indexterm" name="id410846"></a><em class="parameter"><code>comment = Shadow Copy Enabled Share</code></em></td></tr><tr><td><a class="indexterm" name="id410859"></a><em class="parameter"><code>path = /data/shadow_share</code></em></td></tr><tr><td><a class="indexterm" name="id410871"></a><em class="parameter"><code>vfs objects = shadow_copy</code></em></td></tr><tr><td><a class="indexterm" name="id410884"></a><em class="parameter"><code>writeable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id410897"></a><em class="parameter"><code>browseable = yes</code></em></td></tr></table></div></div><br class="example-break"></li><li><p><b>Create Snapshots and Make Them Available to shadow_copy.so. </b>
    379 <a class="indexterm" name="id410920"></a>
    380 <a class="indexterm" name="id410927"></a>
    381 <a class="indexterm" name="id410934"></a>
     378                </p><div class="example"><a name="vfsshadow"></a><p class="title"><b>Example 23.3. Share With shadow_copy VFS</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[shadow_share]</code></em></td></tr><tr><td><a class="indexterm" name="id434464"></a><em class="parameter"><code>comment = Shadow Copy Enabled Share</code></em></td></tr><tr><td><a class="indexterm" name="id434476"></a><em class="parameter"><code>path = /data/shadow_share</code></em></td></tr><tr><td><a class="indexterm" name="id434487"></a><em class="parameter"><code>vfs objects = shadow_copy</code></em></td></tr><tr><td><a class="indexterm" name="id434499"></a><em class="parameter"><code>writeable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id434510"></a><em class="parameter"><code>browseable = yes</code></em></td></tr></table></div></div><br class="example-break"></li><li><p><b>Create Snapshots and Make Them Available to shadow_copy.so. </b>
     379<a class="indexterm" name="id434533"></a>
     380<a class="indexterm" name="id434540"></a>
     381<a class="indexterm" name="id434547"></a>
    382382                Before you can browse the shadow copies, you must create them and mount them.  This will most likely be done
    383383                with a script that runs as a cron job.  With this particular solution, the shadow_copy VFS module is used to
     
    400400                Note that the script does not handle other things like remounting snapshots on reboot.
    401401            </p></li><li><p><b>Test From Client. </b>
    402                 To test, you will need to install the shadow copy client which you can obtain from the <a href="http://www.microsoft.com/windowsserver2003/downloads/shadowcopyclient.mspx" target="_top">Microsoft web site.</a> I
     402                To test, you will need to install the shadow copy client which you can obtain from the <a class="ulink" href="http://www.microsoft.com/windowsserver2003/downloads/shadowcopyclient.mspx" target="_top">Microsoft web site.</a> I
    403403                only tested this with an XP client so your results may vary with other pre-XP clients.  Once installed, with
    404404                your XP client you can right-click on specific files or in the empty space of the shadow_share and view the
    405405                "properties."  If anything has changed, then you will see it on the "Previous Versions" tab of the properties
    406406                window.
    407                 </p></li></ol></div></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id410985"></a>VFS Modules Available Elsewhere</h2></div></div></div><p>
    408 <a class="indexterm" name="id410992"></a>
     407                </p></li></ol></div></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id434600"></a>VFS Modules Available Elsewhere</h2></div></div></div><p>
     408<a class="indexterm" name="id434608"></a>
    409409This section contains a listing of various other VFS modules that have been posted but do not currently reside
    410410in the Samba CVS tree for one reason or another (e.g., it is easy for the maintainer to have his or her own
     
    412412</p><p>
    413413No statements about the stability or functionality of any module should be implied due to its presence here.
    414 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id411007"></a>DatabaseFS</h3></div></div></div><p>
    415 <a class="indexterm" name="id411014"></a>
    416 URL: <a href="http://www.css.tayloru.edu/~elorimer/databasefs/index.php" target="_top">
     414</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id434622"></a>DatabaseFS</h3></div></div></div><p>
     415<a class="indexterm" name="id434630"></a>
     416URL: <a class="ulink" href="http://www.css.tayloru.edu/~elorimer/databasefs/index.php" target="_top">
    417417Taylors University DatabaeFS</a>
    418 </p><p>By <a href="mailto:elorimer@css.tayloru.edu" target="_top">Eric Lorimer.</a></p><p>
     418</p><p>By <a class="ulink" href="mailto:elorimer@css.tayloru.edu" target="_top">Eric Lorimer.</a></p><p>
    419419I have created a VFS module that implements a fairly complete read-only filesystem. It presents information
    420420from a database as a filesystem in a modular and generic way to allow different databases to be used.
     
    426426Any feedback would be appreciated: comments, suggestions, patches, and so on. If nothing else, it
    427427might prove useful for someone else who wishes to create a virtual filesystem.
    428 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id411059"></a>vscan</h3></div></div></div><a class="indexterm" name="id411065"></a><p>URL: <a href="http://www.openantivirus.org/projects.php#samba-vscan" target="_top">
     428</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id434675"></a>vscan</h3></div></div></div><a class="indexterm" name="id434680"></a><p>URL: <a class="ulink" href="http://www.openantivirus.org/projects.php#samba-vscan" target="_top">
    429429Open Anti-Virus vscan</a>
    430430</p><p>
    431 <a class="indexterm" name="id411085"></a>
     431<a class="indexterm" name="id434701"></a>
    432432samba-vscan is a proof-of-concept module for Samba, which provides on-access anti-virus support for files
    433433shared using Samba.  samba-vscan supports various virus scanners and is maintained by Rainer Link.
     434</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id434712"></a>vscan-clamav</h3></div></div></div><p>
     435Samba users have been using the RPMS from SerNet without a problem.
     436OpenSUSE Linux users have also used the vscan scanner for quite some time
     437with excellent results. It does impact overall write performance though.
     438</p><p>
     439The following share stanza is a good guide for those wanting to configure vscan-clamav:
     440</p><pre class="screen">
     441[share]
     442vfs objects = vscan-clamav
     443vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
     444</pre><p>
     445The following example of the <code class="filename">vscan-clamav.conf</code> file may help to get this
     446fully operational:
     447</p><pre class="screen">
     448<span style="color: red">&lt;title&gt;VFS: Vscan ClamAV Control File&lt;/title&gt;</span>
     449#
     450# /etc/samba/vscan-clamav.conf
     451#
     452
     453[samba-vscan]
     454; run-time configuration for vscan-samba using
     455; clamd
     456; all options are set to default values
     457
     458; do not scan files larger than X bytes. If set to 0 (default),
     459; this feature is disable (i.e. all files are scanned)
     460max file size = 10485760
     461
     462; log all file access (yes/no). If set to yes, every access will
     463; be logged. If set to no (default), only access to infected files
     464; will be logged
     465verbose file logging = no
     466
     467; if set to yes (default), a file will be scanned while opening
     468scan on open = yes
     469; if set to yes, a file will be scanned while closing (default is yes)
     470scan on close = yes
     471
     472; if communication to clamd fails, should access to file denied?
     473; (default: yes)
     474deny access on error = no
     475
     476; if daemon failes with a minor error (corruption, etc.),
     477; should access to file denied?
     478; (default: yes)
     479deny access on minor error = no
     480
     481; send a warning message via Windows Messenger service
     482; when virus is found?
     483; (default: yes)
     484send warning message = yes
     485
     486; what to do with an infected file
     487; quarantine: try to move to quantine directory
     488; delete:     delete infected file
     489; nothing:    do nothing (default)
     490infected file action = quarantine
     491
     492; where to put infected files - you really want to change this!
     493quarantine directory  = /opt/clamav/quarantine
     494; prefix for files in quarantine
     495quarantine prefix = vir-
     496
     497; as Windows tries to open a file multiple time in a (very) short time
     498; of period, samba-vscan use a last recently used file mechanism to avoid
     499; multiple scans of a file. This setting specified the maximum number of
     500; elements of the last recently used file list. (default: 100)
     501max lru files entries = 100
     502
     503; an entry is invalidad after lru file entry lifetime (in seconds).
     504; (Default: 5)
     505lru file entry lifetime = 5
     506
     507; exclude files from being scanned based on the MIME-type! Semi-colon
     508; seperated list (default: empty list). Use this with care!
     509exclude file types =
     510
     511; socket name of clamd (default: /var/run/clamd). Setting will be ignored if
     512; libclamav is used
     513clamd socket name = /tmp/clamd
     514
     515; limits, if vscan-clamav was build for using the clamav library (libclamav)
     516; instead of clamd
     517
     518; maximum number of files in archive (default: 1000)
     519libclamav max files in archive = 1000
     520
     521; maximum archived file size, in bytes (default: 10 MB)
     522libclamav max archived file size = 5242880
     523
     524; maximum recursion level (default: 5)
     525libclamav max recursion level = 5
     526</pre><p>
     527Obviously, a running clam daemon is necessary for this to work. This is a working example for me using ClamAV.
     528The ClamAV documentation should provide additional configuration examples. On your system these may be located
     529under the <code class="filename">/usr/share/doc/</code> directory. Some examples may also target other virus scanners,
     530any of which can be used.
    434531</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="CUPS-printing.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="optional.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="winbind.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 22. CUPS Printing Support </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 24. Winbind: Use of Domain Accounts</td></tr></table></div></body></html>
Note: See TracChangeset for help on using the changeset viewer.