- To disable .DS_Store files from being created on network locations, open a Terminal and run the following on each Mac connected to the Server:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
- Open up
/etc/samba/smb.confand add the following lines to each share:
veto files = /._*/.DS_Store/ delete veto files = yes
- Now restart samba.