

Under “Veto criteria” enter “/.DS_Store/”. About half way down on this page you will see an option for “Veto files”. Now click on Advanced Settings under SMB. Open the web interface of your Synology NAS and then open the Control Panel application.

It’s a simple way to block or hide files on your shares. Samba supports a mechanism called “Veto Files” and Synology supports this in DSM. DS_Store files deleted, it’s time to put in place a mechanism on the Synology to prevent them from returning. Del with this switches will force a deletion without asking and search all subfolders for the files. This simply changes to the directory of your mapped share (change D:\ to your drive letter).
#Nas for mac files Pc#
DS_Store files from a PC running Windows, you can map the share and run the following commands: You can also SSH into your Synology NAS and run this command at the command line if you know the location of the share within your volumes and have SSH enabled. This uses the find command to search the shared folder and actions it with the delete option to remove it. DS_Store files from MacOS or Linux, you can attach the share and run the following command:įind /YourShareName -name ".DS_Store" -delete The first thing we need to do is delete all of the existing. You may want to consider disabling all user access to the Synology during this time period and just tell your users you’re going to be doing maintenance for a bit.

#Nas for mac files how to#
I’ll also show you how to clean up these existing. DS_Store files on a Synology NAS permanently, and also show you how to make your Macs be better citizens on the network too. So in this tutorial I am going to show you how to block. This is fine if your entire network is made up of Macs, but for those with PCs it clutters up your shares everywhere and is super irritating. Such as sort order, position and size of icons, and even a custom background file for this folder. These files are used by MacOS to store custom attributes about a folder layout. If you’re like most system administrators who have a mixed Windows, Linux, and Mac environment it probably drives you mad (and your users too) that there are these “.DS_Store” files all over your network shares.
