I'd like my NFS server to always use the same user ID to own the files, whatever user ID is used on the client.

Is this possible and how?

  • What NFS server are you running? On what unix variant? – Gilles 'SO- stop being evil' Oct 10 '13 at 21:40
  • @Gilles OSX Lion's built-in NFS server – Benjamin Oct 10 '13 at 21:52

Put -mapall=user into your exports file.

See man exports for details

|improve this answer|||||

This is possible, look at the User ID mapping section in the exports manpage.

Basically you want this in the exports line: all_squash anonuid=whatever anongid=whatever

If you're not on linux but on BSD, do what Chris S said.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.