/mnt/user/._.DS_Store files everywhere. How do I prevent these files from generating?


Recommended Posts

One option would be to setup a scheduled user script to delete this files.

#!/bin/bash
echo "Searching for (and deleting) .DS_Store Files"
echo "This may take a awhile"
find /mnt/user -maxdepth 9999 -noleaf -type f -name ".DS_Store" -exec rm "{}" \;

 

Link to comment

In general it's a small hidden file. You shouldn't see it either on Windows or MacOS if you doesn't have "show hidden files" enabled. Maybe there is a option on MacOS to prevent it to create these files. What are the downsides of this? I don't know. I'am not using that OS 🤨

Edited by bastl
Link to comment

Disable the creation of .DS_store on network drives (Client side)

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
  • Log out/in to take effect

Disable the creation of all ._ files (Server side)

  1. Stop the array
  2. Go to Smb settings & add the following to the "Samba extra configuration" field
    veto files =/._*/.DS_store/

    Additional files can be vetoed if needed, just remember a trailing "/"

Edited by unRate
  • Like 1
Link to comment
  • 3 years later...
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.