| Red Hat Linux 7.1: The Official Red Hat Linux Customization Guide | ||
|---|---|---|
| Prev | Chapter 8. Network File System (NFS) | Next | 
The /etc/exports file controls what filesystems you wish to export. Its format is as follows:
| directory hostname(options) | 
The (options) are not required. For example:
| /mnt/export speedy.redhat.com | 
would allow speedy.redhat.com to mount /mnt/export, but:
| /mnt/export speedy.redhat.com(ro) | 
would allow speedy to mount /mnt/export read-only.
Each time you change /etc/exports, you must tell the NFS daemons to examine it for new information. One simple way to accomplish this is to just stop and start the daemons:
| /etc/rc.d/init.d/nfs stop /etc/rc.d/init.d/nfs start | 
Or you can restart the daemons with this command:
| /etc/rc.d/init.d/nfs restart | 
The following command will also work:
| killall -HUP rpc.nfsd rpc.mountd |