Take the 2-minute tour ×
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.

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 professional 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

2 Answers 2

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

 
discard

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.