tests/krb5: Add parameter to enforce presence of ticket checksums
[Samba.git] / docs-xml / manpages / vfs_zfsacl.8.xml
blob1ac954b9429b10418a50f5a7ddebbfe40a68fd7c
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="vfs_zfsacl.8">
5 <refmeta>
6         <refentrytitle>vfs_zfsacl</refentrytitle>
7         <manvolnum>8</manvolnum>
8         <refmiscinfo class="source">Samba</refmiscinfo>
9         <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10         <refmiscinfo class="version">&doc.version;</refmiscinfo>
11 </refmeta>
14 <refnamediv>
15         <refname>vfs_zfsacl</refname>
16         <refpurpose>ZFS ACL samba module</refpurpose>
17 </refnamediv>
19 <refsynopsisdiv>
20         <cmdsynopsis>
21                 <command>vfs objects = zfsacl</command>
22         </cmdsynopsis>
23 </refsynopsisdiv>
25 <refsect1>
26         <title>DESCRIPTION</title>
28         <para>This VFS module is part of the
29         <citerefentry><refentrytitle>samba</refentrytitle>
30         <manvolnum>7</manvolnum></citerefentry> suite.</para>
32         <para>The <command>zfsacl</command> VFS module is the home
33         for all ACL extensions that Samba requires for proper integration
34         with ZFS.
35         </para>
37         <para>Currently the zfsacl vfs module provides extensions in following areas :
38         <itemizedlist>
39         <listitem><para>NFSv4 ACL Interfaces with configurable options for ZFS</para></listitem>
40         </itemizedlist>
41         </para>
43         <para><command>NOTE:</command>This module follows the posix-acl behaviour
44         and hence allows permission stealing via chown. Samba might allow at a later
45         point in time, to restrict the chown via this module as such restrictions
46         are the responsibility of the underlying filesystem than of Samba.
47         </para>
49         <para>This module makes use of the smb.conf parameter
50         <smbconfoption name="acl map full control">acl map full control</smbconfoption>
51         When set to yes (the default), this parameter will add in the FILE_DELETE_CHILD
52         bit on a returned ACE entry for a file (not a directory) that already
53         contains all file permissions except for FILE_DELETE and FILE_DELETE_CHILD.
54         This can prevent Windows applications that request GENERIC_ALL access
55         from getting ACCESS_DENIED errors when running against a filesystem
56         with NFSv4 compatible ACLs.
57         </para>
59         <para>This module is stackable.</para>
61         <para>Since Samba 4.0 all options are per share options.</para>
63 </refsect1>
66 <refsect1>
67         <title>OPTIONS</title>
69         <variablelist>
71                 <varlistentry>
73                 <term>nfs4:mode = [ simple | special ]</term>
74                 <listitem>
75                 <para>
76                 Controls substitution of special IDs (OWNER@ and GROUP@) on ZFS.
77                 The use of mode simple is recommended.
78                 In this mode only non inheriting ACL entries for the file owner
79                 and group are mapped to special IDs.
80                 </para>
82                 <para>The following MODEs are understood by the module:</para>
83                 <itemizedlist>
84                 <listitem><para><command>simple(default)</command> - use OWNER@ and GROUP@ special IDs for non inheriting ACEs only.</para></listitem>
85                 <listitem><para><command>special(deprecated)</command> - use OWNER@ and GROUP@ special IDs in ACEs for all file owner and group ACEs.</para></listitem>
86                 </itemizedlist>
87                 </listitem>
89                 </varlistentry>
92                 <varlistentry>
93                 <term>nfs4:acedup = [dontcare|reject|ignore|merge]</term>
94                 <listitem>
95                 <para>
96                 This parameter configures how Samba handles duplicate ACEs encountered in ZFS ACLs.
97                 ZFS allows/creates duplicate ACE for different bits for same ID.
98                 </para>
100                 <para>Following is the behaviour of Samba for different values :</para>
101                 <itemizedlist>
102                 <listitem><para><command>dontcare (default)</command> - copy the ACEs as they come</para></listitem>
103                 <listitem><para><command>reject (deprecated)</command> - stop operation and exit with error on ACL set op</para></listitem>
104                 <listitem><para><command>ignore (deprecated)</command> - don't include the second matching ACE</para></listitem>
105                 <listitem><para><command>merge</command> - bitwise OR the 2 ace.flag fields and 2 ace.mask fields of the 2 duplicate ACEs into 1 ACE</para></listitem>
106                 </itemizedlist>
107                 </listitem>
108                 </varlistentry>
111                 <varlistentry>
112                 <term>nfs4:chown = [yes|no]</term>
113                 <listitem>
114                 <para>This parameter allows enabling or disabling the chown supported
115                 by the underlying filesystem. This parameter should be enabled with
116                 care as it might leave your system insecure.</para>
117                 <para>Some filesystems allow chown as a) giving b) stealing. It is the latter
118                 that is considered a risk.</para>
120                 <para>Following is the behaviour of Samba for different values : </para>
121                 <itemizedlist>
122                 <listitem><para><command>yes</command> - Enable chown if as supported by the under filesystem</para></listitem>
123                 <listitem><para><command>no (default)</command> - Disable chown</para></listitem>
124                 </itemizedlist>
125                 </listitem>
126                 </varlistentry>
128                 <varlistentry>
129                 <term>zfsacl:denymissingspecial = [yes|no]</term>
130                 <listitem>
131                 <para>Prevent users from setting an ACL that lacks NFSv4 special entries
132                 (owner@, group@, everyone@). ZFS will automatically generate these these entries
133                 when calculating the inherited ACL of new files if the ACL of the parent directory
134                 lacks an inheriting special entry. This may result in user confusion and unexpected
135                 change in permissions of files and directories as the inherited ACL is generated.</para>
136                 <itemizedlist>
137                 <listitem><para><command>yes</command></para></listitem>
138                 <listitem><para><command>no (default)</command></para></listitem>
139                 </itemizedlist>
140                 </listitem>
141                 </varlistentry>
143                 <varlistentry>
144                 <term>zfsacl:block_special = [yes|no]</term>
145                 <listitem>
146                 <para>Prevent ZFS from automatically adding NFSv4 special
147                 entries (owner@, group@, everyone@).  ZFS will automatically
148                 generate these these entries when calculating the inherited ACL
149                 of new files if the ACL of the parent directory lacks an
150                 inheriting special entry. This may result in user confusion and
151                 unexpected change in permissions of files and directories as the
152                 inherited ACL is generated. Blocking this behavior is achieved
153                 by setting an inheriting everyone@ that grants no permissions
154                 and not adding the entry to the file's Security
155                 Descriptor</para>
156                 <itemizedlist>
157                 <listitem><para><command>yes (default)</command></para></listitem>
158                 <listitem><para><command>no</command></para></listitem>
159                 </itemizedlist>
160                 </listitem>
161                 </varlistentry>
163                 <varlistentry>
164                 <term>zfsacl:map_dacl_protected = [yes|no]</term>
165                 <listitem>
166                 <para>If enabled and the ZFS ACL on the underlying filesystem does not contain
167                 any inherited access control entires, then set the SEC_DESC_DACL_PROTECTED flag
168                 on the Security Descriptor returned to SMB clients.
169                 This ensures correct Windows client behavior when disabling inheritance on
170                 directories.</para>
172                 <para>Following is the behaviour of Samba for different values : </para>
173                 <itemizedlist>
174                 <listitem><para><command>yes</command> - Enable mapping to
175                 SEC_DESC_DACL_PROTECTED</para></listitem>
176                 <listitem><para><command>no (default)</command></para></listitem>
177                 </itemizedlist>
178                 </listitem>
179                 </varlistentry>
182         </variablelist>
183 </refsect1>
185 <refsect1>
186         <title>EXAMPLES</title>
188         <para>A ZFS mount can be exported via Samba as follows :</para>
190 <programlisting>
191         <smbconfsection name="[samba_zfs_share]"/>
192         <smbconfoption name="vfs objects">zfsacl</smbconfoption>
193         <smbconfoption name="path">/test/zfs_mount</smbconfoption>
194         <smbconfoption name="nfs4: mode">simple</smbconfoption>
195         <smbconfoption name="nfs4: acedup">merge</smbconfoption>
196 </programlisting>
197 </refsect1>
199 <refsect1>
200         <title>VERSION</title>
201         <para>This man page is part of version &doc.version; of the Samba suite.
202         </para>
203 </refsect1>
205 <refsect1>
206         <title>AUTHOR</title>
208         <para>The original Samba software and related utilities
209         were created by Andrew Tridgell. Samba is now developed
210         by the Samba Team as an Open Source project similar
211         to the way the Linux kernel is developed.</para>
212 </refsect1>
214 </refentry>