Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In our mixed network the OSX clients like to create resource fork junk on our Linux NFS shares. What I'd like is a server setting much like Sambas veto files-directive to disallow creation of ._* folders.

I can't find anything like it in NFS man-pages (export, nfs, nfsd, exportfs), maybe it could be configured on the underlying filesystem?

ps. I am aware of defaults write DSDontWriteNetworkStores true to make OSX not create *.DS_Store*-files on network disks.

share|improve this question

It turns out that you should be able to remove these directories very soon as they are created using inotify feature. I would check out incron or fsniper, they look very promising.

share|improve this answer
These tools indeed look like they could do the work. Thank you. – manghole Dec 15 '09 at 14:24

Generally preventing the creation of files/directories matching a certain path is a tiny part of an elephant called mandatory access control (MAC). It is a main part of SELinux. MAC integrated into NFS is not here yet, but for your needs it is indeed sufficient to act on filesystem level.

But it's most certainly too cumbersome solution for your problem :)

share|improve this answer
That indeed looks like a mighty big canon to solve this tiny nuisance. But thank you for the information, I will definitely read up on it. I've previously only experienced head aches with trying to get NFS to work smoothly with SELinux turned on. – manghole Dec 15 '09 at 13:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.