dperson / samba

Samba docker container
GNU Affero General Public License v3.0
1.52k stars 514 forks source link

Share mask handling seems different between OSX and Win10? #382

Closed ovizii closed 3 years ago

ovizii commented 3 years ago

I mount the same share in both OS and create a folder and sub-folder from both OSes:

WIN10:

ls -al /sixer/Music/___win/
total 545
drwxrwxr-x    3 1000 1000    3 May 25 13:59 .
drwxrwx--- 1749 1000 1000 1749 May 25 13:59 ..
drwxrwxr-x    2 1000 1000    2 May 25 13:59 ___win

OSX:

ls -al /sixer/Music/___osx/
total 545
drwxr-xr-x    3 1000 1000    3 May 25 13:59 .
drwxrwx--- 1749 1000 1000 1749 May 25 13:59 ..
drwxr-xr-x    2 1000 1000    2 May 25 13:59 ___osx

Any ideas how to get both OSes to "behave the same"?

ovizii commented 3 years ago

I found the solution here: https://unix.stackexchange.com/questions/486919/creating-a-directory-in-samba-share-from-osx-client-always-has-acl-maskr-x/487094#487094

just set this global option and OSX respects the same mask settings as Win10 does:

-g "fruit:nfs_aces = no"