Martin Markert
2016-Jun-13 14:19 UTC
[Samba] Samba 4.2 - OS X 10.11 - permissions are being ignored
Am 2016-06-09 18:16, schrieb Jeremy Allison:> On Thu, Jun 09, 2016 at 02:11:15PM +0200, Martin Markert wrote: >> Hi, >> when saving a file to this share the permissions (0777) are being >> ignored under OS X 10.11.5. All files will get these permissions: >> 0755. I don't know why? > > Remember, "force XXX mode" only applies to file/directory > creation. The client is then free to change permissions > after the object is created.Yes, I know. But after simply creating a folder within the Finder the folder got these permissions on the share: 0755 and not 0777> > >> [global] >> workgroup = BAVARIA >> server string = Samba Server %m >> netbios name = NASBAV1 >> >> log file = /var/log/samba/%m_%a_%R.log >> max log size = 50 >> log level = 1 >> >> security = user >> encrypt passwords = yes >> >> preferred master = no >> >> printcap name = /etc/printcap >> load printers = no >> >> [nova1] >> comment = projects share >> path = /data/nova1 >> read only = No >> valid users = lustreuser >> vfs objects = catia fruit streams_xattr >> fruit:resource = file >> fruit:metadata = netatalk >> fruit:locking = none >> fruit:encoding = private >> force directory mode = 0777 >> force create mode = 0666 >> >> Kind regards, >> Martin >> >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba
Jeremy Allison
2016-Jun-13 15:41 UTC
[Samba] Samba 4.2 - OS X 10.11 - permissions are being ignored
On Mon, Jun 13, 2016 at 04:19:06PM +0200, Martin Markert wrote:> > > Am 2016-06-09 18:16, schrieb Jeremy Allison: > >On Thu, Jun 09, 2016 at 02:11:15PM +0200, Martin Markert wrote: > >>Hi, > >>when saving a file to this share the permissions (0777) are being > >>ignored under OS X 10.11.5. All files will get these permissions: > >>0755. I don't know why? > > > >Remember, "force XXX mode" only applies to file/directory > >creation. The client is then free to change permissions > >after the object is created. > > Yes, I know. But after simply creating a folder within the Finder > the folder got these permissions on the share: 0755 and not 0777But you have no idea what the client does when "simply creatinga folder". Under the covers that is almost certainly a compound "create then chmod" operation.
Martin Markert
2016-Jun-13 20:15 UTC
[Samba] Samba 4.2 - OS X 10.11 - permissions are being ignored
> Am 13.06.2016 um 17:41 schrieb Jeremy Allison <jra at samba.org>: > > On Mon, Jun 13, 2016 at 04:19:06PM +0200, Martin Markert wrote: >> >> >> Am 2016-06-09 18:16, schrieb Jeremy Allison: >>> On Thu, Jun 09, 2016 at 02:11:15PM +0200, Martin Markert wrote: >>>> Hi, >>>> when saving a file to this share the permissions (0777) are being >>>> ignored under OS X 10.11.5. All files will get these permissions: >>>> 0755. I don't know why? >>> >>> Remember, "force XXX mode" only applies to file/directory >>> creation. The client is then free to change permissions >>> after the object is created. >> >> Yes, I know. But after simply creating a folder within the Finder >> the folder got these permissions on the share: 0755 and not 0777 > > But you have no idea what the client does when "simply creatinga > folder". Under the covers that is almost certainly a compound > "create then chmod" operation.You are right but this procedure works when I remove the whole "vfs objects“ section including the fruits options. After that I get the desired permissions: 0777