Barney-15E wrote:
As far as I know, that preference setting will only prevent writing the Desktop Services Store (.DS_Store). It doesn't prevent splitting off the metadata into ._ files.
There used to be a program called BlueHarvest that prevented writing the metadata files.
If you have control of the Samba server, look into veto files. You may be able to stop them from that end.
I am pretty sure (80%?) that I just had to use the defaults setting and no ._* files were ever created. And I have loads of files on my SMB server's shares with dates showing they were copied prior to Ventura.
Interestingly I decided to ask ChatGPT and Bard. And interestingly, they gave different answers. Bard is telling me that the defaults setting can prevent these files being created by Finder. However, ChatGPT tells me the following:
To prevent the creation of .DS_Store and ._* files by Finder on SMB shares mounted on a Mac running macOS Ventura, you can follow these steps:
- Open Terminal: You can find Terminal in the Utilities folder within the Applications folder, or you can use Spotlight search by pressing Command + Space and typing "Terminal."
- Enter the following command to create a global configuration file for the SMB client:
sudo nano /etc/nsmb.conf
This command opens the Nano text editor with administrative privileges.
- If the file is empty, start by adding the following lines:
[default]
smb_neg=smb3_only
file_ids_off=yes
dir_ids_off=yes
streams=no
- Press Control + O to save the changes, and then press Control + X to exit Nano.
- Restart the SMB client by entering the following command:
sudo killall -HUP smbd
This command refreshes the SMB client and loads the new configuration.
With these steps, you've configured the SMB client to prevent the creation of .DS_Store files and ._* files on SMB shares. The streams option disables the creation of alternate data streams, which are used for resource forks on SMB shares. Additionally, the smb_neg, file_ids_off, and dir_ids_off options help optimize compatibility with certain SMB servers.
It's important to note that these changes will affect all SMB shares on your Mac. If you want to revert them or customize the configuration for specific shares, you can modify the /etc/nsmb.conf file accordingly.
I've now applied the ChatGPT suggested solution and that is working.