CyberSlave

Live the life you love.

Disabling the Creation of .DS_Store Files on a Samba Share

Don’t you hate those .DS_Store files lying around on your samba server.

Open up smb.conf and add the following lines to each share:

1
2
veto files = /._*/.DS_Store/
delete veto files = yes

restart samba

Now cleanup the server of all those unwanted .DS_Store files.

$ find . -type f -name ".DS_Store" -exec rm -f {} \;

On your mac client, use this command to prevent any future creation of .DS_Store files on network shares:

$ defaults write com.apple.desktopservices DSDontWriteNetworkStores true