I'm using Samba 4.2.0 build from the source tarball https://www.samba.org/samba/ftp/stable/samba-4.2.0.tar.gz on Ubuntu Linux 14.04 LTS and OpenIndiana Solaris oi_151a9 I'm started using vfs_fruit and I saw immediately that the new file and directory creation modes I had in my config were not being respected. Commenting out vfs_fruit restored the new file/directory modes functionality. I've tested this on both Ubuntu Linux and on OpenIndiana with the same results. Specifically I need group write permissions to be in place on every new file and directory created by every user. The striped down config that shows the issue for me: [global] netbios name = TESTING workgroup = TEST security = user encrypt passwords = yes load printers = no printcap name = /dev/null disable spoolss = yes unix extensions = no strict locking = no wide links = no log level = 2 [TEST] path = /tank/testing/testshare read only = no create mode = 0666 directory mode = 0777 vfs objects = fruit Commenting out the last line and restarting gives different group and world mode on newly created files and directories. Thanks
"create mode" and "directory mode" are applied at file creation time and the mode is modified in subsequent setinfo with an nt acl including an MS NFS mode ACE. The only way to achieve intended behaviour is another vfs_fruit option that disables the feature at the SMB2 AAPL extension protocol level. Patch to follow.
Created attachment 11034 [details] Patch for master Patch series includes a second commit fixing a comment, hope that's ok. :)
Comment on attachment 11034 [details] Patch for master Revoking patch and review request. Just stumpled across that the patch makes this a per share option, but that's misleading, it's a global option. Updated patch to follow.
Created attachment 11035 [details] Patch for master Patch series includes a second commit fixing a comment, hope that's ok. :)
Comment on attachment 11035 [details] Patch for master LGTM. Pushed to master.
Created attachment 11038 [details] Patch for 4.2 cherry-picked from master
Comment on attachment 11038 [details] Patch for 4.2 cherry-picked from master LGTM.
Re-assigning to Karolin for inclusion in 4.2.next.
(In reply to Jeremy Allison from comment #8) Pushed to autobuild-v4-2-test.
Pushed to v4-2-test. Closing out bug report! Thanks!