Author Topic: NFS mounting as desired user  (Read 4698 times)

gouravjoshi

  • Administrator
  • Full Member
  • *****
  • Posts: 94
  • Karma: 1
NFS mounting as desired user
« on: June 23, 2010, 05:31:11 AM »
If you have a user with name "gourav" in your linux box, then you just need to add anonuid=gourav uid and anongid=gourav gid in /etc/exports

for example ;
in /etc/exports

/data * (sync,anonuid=501,anongid=501)

At the remote machine where you are mounting this through NFS make the directory owner and group to gourav. Then mount it now try to create any file and check it should be created with gourav owner.