Mac OS:
- 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
Samba:
- Open up /etc/samba/smb.conf and add the following lines to each share:
veto files = /._*/.DS_Store/ delete veto files = yes
- Now restart samba.