Samba Tips

From trapsink.com
Jump to: navigation, search


OS X Permissions

Starting with OS X 10.5.4 there have been problems with the Mac client connecting and properly working with group-style permissions set on a Samba server (10.5.3 and below seem fine). Additionally, 10.6.x introduced a new issue with vetoed .DS_Store files that worked fine on 10.5.x and below. Adjust this to meet the specific needs.

/etc/samba/smb.conf
# [...] other stuff

# OS X 10.4 can't see if set to 0 (infinity) -- solves problem
# of >4TB disk space available to these clients
max disk size = 4000000

# OS X 10.5 is really broken, these are to stop it from being bad
create mask = 0664
force create mode = 0664
security mask = 0000
force security mode = 0664

directory mask = 0775
force directory mode = 0775
directory security mask = 0000
force directory security mode = 0775

# OS X 10.6 can't handle .DS_Store in your 'veto files' line - crashes
delete veto files = yes
## veto files = /Icon?/:2eDS_Store/.DS_Store/
veto files = /Icon?/:2eDS_Store/

# [...] other stuff

[homes]
  comment = Home Directories
  browseable = no
  writable = yes
  create mask = 0644
  directory mask = 0755
  force create mode = 0644
  force directory mode = 0755