Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

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?

share|improve this question

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

Put -mapall=user into your exports file.

See man exports for details

share|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.

share|improve this answer

Your Answer


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

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