NFS File Permission Issue

Latest response

Hello,

Have any one explain NFS File permission.

I have configured NFS server and i have assigned 755 permission for NFS shared folder(Folder created by root).

/etc/exports look like,

/nfsshare 192.168.5.1(rw)

/nfsshare 192.168.5.2(ro)

but I am not able to get write permission in NFS shared folder.

If I change NFS folder permission to 777, both 192.168.5.1, 192.168.5.2 have write access.

can any one help on this issue.

Responses

By default, root_squash is enabled for NFS shares. You'd need to disable that function on the share if you wanted to let root write to it. Other than that, you could use an alternate anonymous user mapping to map root to a non-privileged account that DOES have rights to write to the share.

Hi Tom,

Thanks for your information, after disable root_squash we can able to write in nfs sahred folder as a root user.

I have another doubt,

If I want normal user can able to write permission in nfs share folder means,what are the steps I need to take.

  1. Share has to be exported R/W
  2. Share has to be mounted R/W
  3. Directories need to be set with correct permissions to allow normal users to write to them (via directories with appropriate user- or group-ownership settings or ACLs)
  4. Remote users UIDs/GIDs need to be correctly mapped to the UIDs/GIDs that the NFS server knows about (via LDAP, WINBIND, NIS, manual password syncing)
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.