logoalt Hacker News

cozzydtoday at 12:25 AM3 repliesview on HN

It would at least be nice if there was a way to keep apple users from shitting all over the filesystem with remote mounts and ds_store files. Perhaps by automatically unmounting if one is detected.


Replies

Maskawaniantoday at 2:35 PM

At least with Samba you can use the "veto files" and "delete veto files" global directives to deal with those, I personally use the following for veto files:

    /._*/.AppleDB/.AppleDouble/.AppleDesktop/:2eDS_Store/Network Trash Folder/Temporary Items/TheVolumeSettingsFolder/.@__thumb/.@__desc/:2e*/.@__qini/.Qsync/.@upload_cache/.qsync/.qsync_sn/.@qsys/.digest/
I understand that I may loose resource forks, but that isn't a problem for the use case of my server.
seqastiantoday at 6:43 AM

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

bombcartoday at 1:52 AM

At least if you're using ZFS as the backing store and Samba, you can set vfs objects = catia fruit streams_xattr and similar config options to use extended attributes.