August 2011
Intermediate to advanced
448 pages
10h 16m
English
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:
<directory> <user>(<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:
/u01/stage *(rw,no_root_squash)
/u01/apps oracle(rw)
In addition to /etc/exports, the NFS service must be enabled. To enable it by default, use chkconfig:
# chkconfig ...