s3/vfs: add SMB_VFS_OFFLOAD_READ_SEND/RECV
[kamenim/samba-autobuild/.git] / source3 / modules / README.nfs4acls.txt
1 Configuring NFS4 ACLs in Samba3
2 ===============================
3 Created: Peter Somogyi, 2006-JUN-06
4 Last modified: Alexander Werth, 2013-MAY-02
5 Revision no.: 4 
6 -------------------------------
7
8
9 Parameters in smb.conf:
10 =======================
11
12 Each parameter must have a prefix "nfs4:".
13 Each one affects the behaviour only when _setting_ an acl on a file/dir:
14
15 mode = [simple|special]
16 - simple: Use OWNER@ and GROUP@ special IDs for non inheriting ACEs only.
17   This mode is the default.
18 - special: use OWNER@ and GROUP@ special IDs in ACEs instead of simple
19   user&group ids. This mode is deprecated.
20
21 Note1: EVERYONE@ is always processed (if found such an ACE).
22 Note2: There is a side effect when _only_ chown is performed.
23        Later this may be worked out.
24 Note3: Mode special inherits incorrect ACL entries when the user creating
25        a file is different from the owner of the caurrent folder.
26 Note4: Mode simple uses inheriting OWNER@ and GROUP@ special IDs to
27        support Creator Owner and Creator Group.
28
29 It's strongly advised to set "store dos attributes = yes" in smb.conf.
30
31 chown = [true|false]
32 - true => enable changing owner and group - default.
33 - false => disable support for changing owner or group
34
35 acedup = [dontcare|reject|ignore|merge]
36 - dontcare: copy ACEs as they come, don't care with "duplicate" records. Default.
37 - reject: stop operation, exit acl setter operation with an error
38 - ignore: don't include the second matching ACE
39 - merge: OR 2 ace.flag fields and 2 ace.mask fields of the 2 duplicate ACEs into 1 ACE
40
41 Two ACEs are considered here "duplicate" when their type and id fields are matching.
42
43 Example:
44
45 [smbtest]
46 path = /tests/psomogyi/smbtest
47 writable = yes
48 vfs objects = aixacl2
49 nfs4: mode = special
50 nfs4: chown = yes
51 nfs4: acedup = merge
52
53 Configuring AIX ACL support
54 ==============================
55
56 Binaries: (default install path is [samba]/lib/vfs/)
57 - aixacl.so: provides AIXC ACL support only, can be compiled and works on all AIX platforms
58 - aixacl2.so: provides AIXC and JFS2-NFS4 ACL support, can be compiled and works only under AIX 5.3 and newer.
59 NFS4 acl currently has support only under JFS2 (ext. attr. format must be set to v2).
60 aixacl2.so always detects support for NFS4 acls and redirects to POSIX ACL handling automatically when NFS4 is not supported for a path.
61
62 Adding "vfs objects = aixacl2" to a share should be done only in case when NFS4 is really supported by the filesystem.
63 (Otherwise you may get performance loss.)
64
65 For configuration see also the example above.
66
67 General notes
68 =============
69
70 NFS4 handling logic is separated from AIX/jfs2 ACL parsing.
71
72 Samba and its VFS modules dosn't reorder ACEs. Windows clients do that (and the smbcacl tool). MSDN also says deny ACEs must come first.
73 NFS4 ACL's validity is checked by the system API, not by Samba.
74 NFS4 ACL rights are enforced by the OS or filesystem, not by Samba.
75
76 The flag INHERITED_ACE is never set (not required, as doesn't do WinNT/98/me, only since Win2k).
77 Win2k GUI behaves strangely when detecting inheritance (sometimes it doesn't detect, 
78 but after adding an ace it shows that - it's some GUI error).
79
80 Unknown (unmappable) SIDs are not accepted.
81
82 TODOs
83 =====
84 - Creator Owner & Group SID handling (same way as posix)
85 - the 4 generic rights bits support (GENERIC_RIGHT_READ_ACCESS, WRITE, EXEC, ALL)
86 - chown & no ACL, but we have ONWER@ and GROUP@
87 - DIALUP, ANONYMOUS, ... builtin SIDs
88 - audit & alarm support - in theory it's forwarded so it should work, but currently there's no platform which supports them to test
89 - support for a real NFS4 client (we don't have an accepted API yet)