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">
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">4.1</refmiscinfo>
15 <refname>vfs_zfsacl</refname>
16 <refpurpose>ZFS ACL samba module</refpurpose>
21 <command>vfs objects = zfsacl</command>
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
37 <para>Currently the zfsacl vfs module provides extensions in following areas :
39 <listitem><para>NFSv4 ACL Interfaces with configurable options for ZFS</para></listitem>
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.
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.
59 <para>This module is stackable.</para>
61 <para>Since Samba 4.0 all options are per share options.</para>
67 <title>OPTIONS</title>
73 <term>nfs4:mode = [ simple | special ]</term>
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.
82 <para>The following MODEs are understood by the module:</para>
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>
93 <term>nfs4:acedup = [dontcare|reject|ignore|merge]</term>
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.
100 <para>Following is the behaviour of Samba for different values :</para>
102 <listitem><para><command>dontcare (default)</command> - copy the ACEs as they come</para></listitem>
103 <listitem><para><command>reject</command> - stop operation and exit with error on ACL set op</para></listitem>
104 <listitem><para><command>ignore</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>
112 <term>nfs4:chown = [yes|no]</term>
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>
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>
132 <title>EXAMPLES</title>
134 <para>A ZFS mount can be exported via Samba as follows :</para>
137 <smbconfsection name="[samba_zfs_share]"/>
138 <smbconfoption name="vfs objects">zfsacl</smbconfoption>
139 <smbconfoption name="path">/test/zfs_mount</smbconfoption>
140 <smbconfoption name="nfs4: mode">special</smbconfoption>
141 <smbconfoption name="nfs4: acedup">merge</smbconfoption>
146 <title>VERSION</title>
147 <para>This man page is correct for version 4.0.x of the Samba suite.
152 <title>AUTHOR</title>
154 <para>The original Samba software and related utilities
155 were created by Andrew Tridgell. Samba is now developed
156 by the Samba Team as an Open Source project similar
157 to the way the Linux kernel is developed.</para>