0

We have mounted a directory from SERVER A to SERVER B using NFS. All unix accounts on Server B should be able to write to the mounted directory, also overwrite files created by accounts in Server B. exports file already has rw permission. Unix account in serverB is not able to write into the mounted nfs directory. How to resolve this issue ?

closed as unclear what you're asking by roaima, GAD3R, HalosGhost, techraf, G-Man Oct 15 '16 at 23:08

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • How is authentication performed on the two machines? – Philip Kendall Oct 15 '16 at 7:52
  • As the nfs directory is permanently mounted there would be no authentication between 2 machines. The mount happens through private IP – Karthik K Oct 15 '16 at 7:55
  • Sorry, ambiguous question - how is user authentication performed on the two machines? – Philip Kendall Oct 15 '16 at 8:00
  • User authentication is ssh-password based. But in this case I would like to bypass any means of authentication. – Karthik K Oct 15 '16 at 8:02
  • do hostA and hostB have same /etc/passwd ? – Archemar Oct 15 '16 at 8:20
1

On FreeBSD, in /etc/exports you can do this:

/serverADir -mapall=allnfsusers:allnfsusers ...IP or server...

Now create the allnfsusers user account and set the permissions chown -R allnfsusers:allnfsusers /serverADir.

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