| 1 |
<samba:parameter name="hide files" |
| 2 |
type="string" |
| 3 |
context="S" |
| 4 |
substitution="1" |
| 5 |
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> |
| 6 |
<description> |
| 7 |
<para>This is a list of files or directories that are not |
| 8 |
visible but are accessible. The DOS 'hidden' attribute is applied |
| 9 |
to any files or directories that match.</para> |
| 10 |
|
| 11 |
<para>Each entry in the list must be separated by a '/', |
| 12 |
which allows spaces to be included in the entry. '*' |
| 13 |
and '?' can be used to specify multiple files or directories |
| 14 |
as in DOS wildcards.</para> |
| 15 |
|
| 16 |
<para> |
| 17 |
<smbconfoption name="hide files"/> can also be used as a |
| 18 |
parametric option where NAME in</para> |
| 19 |
|
| 20 |
<para> |
| 21 |
hide files : NAME = |
| 22 |
</para> |
| 23 |
|
| 24 |
<para> |
| 25 |
specifies a user or group name with the same syntax as |
| 26 |
<smbconfoption name="valid users"/>. This parametric form can |
| 27 |
be specified multiple times for different users or |
| 28 |
groups. This means that "hide files : NAME" set both |
| 29 |
in the [global] and the share section add up, whereas normally |
| 30 |
options set in a share section overwrite the default in the |
| 31 |
[global] section. |
| 32 |
</para> |
| 33 |
|
| 34 |
<para>Each entry must be a Unix path, not a DOS path and must |
| 35 |
not include the Unix directory separator '/'.</para> |
| 36 |
|
| 37 |
<para>Note that the case sensitivity option is applicable |
| 38 |
in hiding files.</para> |
| 39 |
|
| 40 |
<para>Setting this parameter will affect the performance of Samba, |
| 41 |
as it will be forced to check all files and directories for a match |
| 42 |
as they are scanned.</para> |
| 43 |
|
| 44 |
<para> |
| 45 |
The example shown above is based on files that the Macintosh |
| 46 |
SMB client (DAVE) available from <ulink url="http://www.thursby.com"> |
| 47 |
Thursby</ulink> creates for internal use, and also still hides |
| 48 |
all files beginning with a dot. |
| 49 |
</para> |
| 50 |
|
| 51 |
<para> |
| 52 |
An example of us of this parameter is: |
| 53 |
<programlisting> |
| 54 |
hide files = /.*/DesktopFolderDB/TrashFor%m/resource.frk/ |
| 55 |
|
| 56 |
; Hide some files for anyone and some files for specific users and groups |
| 57 |
hide files = /hideforall1/ |
| 58 |
hide files : USER = /hidetoforuser/ |
| 59 |
hide files : GROUP = /hideforgroup/ |
| 60 |
hide files : UNIVERSITY\Alumnis = /somefile.txt/ |
| 61 |
hide files : [email protected] = /anotherfile.txt/ |
| 62 |
hide files : S-1-5-21-123-456-789-1000 = /secretfile.txt/ |
| 63 |
|
| 64 |
</programlisting> |
| 65 |
</para> |
| 66 |
</description> |
| 67 |
|
| 68 |
<related>hide dot files</related> |
| 69 |
<related>veto files</related> |
| 70 |
<related>case sensitive</related> |
| 71 |
|
| 72 |
<value type="default"><comment>no file are hidden</comment></value> |
| 73 |
|
| 74 |
</samba:parameter> |