1

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?

migrated from serverfault.com Oct 10 '13 at 14:07

This question came from our site for system and network administrators.

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

Put -mapall=user into your exports file.

See man exports for details

3

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.

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.