Fix SMB Permissions on OS X Server for Newly Created Files and Folders

I don't know why it is, but SMB on OS X Server is slower and less reliable than the AFP that it replaces. Despite Apple making it the default for OS X to OS...

I don’t know why it is, but SMB on OS X Server is slower and less reliable than the AFP that it replaces. Despite Apple making it the default for OS X to OS X Server file sharing connections, AFP seems to be more reliable and has less problems with permissions. The following script may fix the inheritance of permissions being a bit wonky:

#!/bin/bash SHAREPOINT=“/Volumes/Storage/Shared Items/Share” serveradmin settings sharing:sharePointList:_array_id:$SHAREPOINT:smbCreateMask = “0644” serveradmin settings sharing:sharePointList:_array_id:$SHAREPOINT:smbDirectoryMask = “0755” serveradmin settings sharing:sharePointList:_array_id:$SHAREPOINT:smbInheritPermissions = yes

Keep This Useful

Spotted something outdated or unclear?

If a step has changed, a screenshot no longer matches, or something here just does not work the way it should, get in touch and we will take a look.