Updating NFS Share permissions..

Wanted to add this for my future reference. To update the permissions on a NFS (Network File System) share, you need to edit the “/etc/exports” file and then run “/usr/sbin/exportfs -a” to update the share permissions.

Syntax of /etc/exports looks like
/dir/to/export host1.mydomain.com(ro,root_squash)

UPDATE : Looks like the NFS daemon caches DNS lookups when authenticating a client. Am not sure if this is only in older versions. After we updated the exports file, the server still kep erroring out with a “unresolvable reverse lookup” error. I finally had to restart the daemon to make it check on the DNS records for the accessing client.