Accueil > Logiciel > Disable creation of .AppleDouble files on Mac OS X

Disable creation of .AppleDouble files on Mac OS X

03/03/2024 Categories: Logiciel Tags: ,
Print Friendly, PDF & Email

Given that Macs support multiple forks to files, the AppleDouble trick (._ files) try to preserve the data in those forks. So they are needed so that Mac OS X can perform operations on them.

However, most of the files are created when the same volume is mounted through AFP, not SMB/CIFS or NFS. In that case, the AFP server might have configuration options for dealing with the Apple Double files (see, for instance, this blog post).

In order to get rid of AppleDouble files, you can on a Mac the dot_clean command:

dot_clean --keep=dotbar /Volumes/mounted_smb_volume

where mounted_smb_volume would be the name of the mounted volume.

You could add it to a crontab entry, or better yet, use something like Lingon X to create a launchd entry.

Also:To configure a Mac OS X user account so that .DS_Store files are not created when interacting with a remote file server using the Finder, follow the steps below:Note: This will affect the user’s interactions with SMB/CIFS, AFP, NFS, and WebDAV servers.

  1. Open Terminal.
  2. Execute this command:
    defaults write com.apple.desktopservices DSDontWriteNetworkStores true
  3. Either restart the computer or log out and back in to the user account.

If you want to prevent .DS_Store file creation for other users on the same computer, log in to each user account and perform the steps above—or distribute a copy of the newly modified com.apple.desktopservices.plist file to the ~/Library/Preferences folder of other user accounts.

These steps do not prevent the Finder from creating .DS_Store files on the local volume, and these steps do not prevent previously existing .DS_Store files from being copied to the remote file server.Disabling the creation of .DS_Store files on remote file servers can cause unexpected behavior in the Finder (click here for an example).
Lire aussi:  13 Apache Web Server Security and Hardening Tips
Categories: Logiciel Tags: ,
Les commentaires sont fermés.