Configuring NFS consists of two parts: setting directory permissions and enabling NFS. Configuring permissions is done in the /etc/exports file. The /etc/exports file consists of two fields: the directory and the permissions. The directory field contains the top-level directory being exported. The second field consists of a username (or *) and the permissions:
An example is shown here. The root_squash permission prohibits root access; no_ root_squash allows root access. Here is an example of an /etc/exports file:
In addition to /etc/exports, the NFS service must be enabled. To enable it by default, use chkconfig:
# chkconfig ...