By default, Red Hat Linux supports NFS:
- Red Hat supplies precompiled NFS modules for the Linux kernel, which the kernel loads when you mount a NFS filesystem.
- Red Hat Linux starts
portmap automatically at boot.
- If you configure your network information, then Red Hat Linux automatically starts the NFS server daemons
rpc.nfsd at boot.
Because Red Hat Linux starts the necessary servers, you only need to configure the exported filesystems. The
file describes exported filesystems, including access permissions and read/write privileges.
To configure the exported filesystems, open
in your favorite editor.
In the next lesson, you will learn about NFS security issues.
command is the general tool for working with exported filesystems. You will most often use
in one of four ways:
- To notify the NFS system you made changes to
/etc/exports. Once you have changed your exported filesystems, run
exportfs -r to incorporate them.
- To unexport (disconnect an exported filesystem) all filesystems listed in
/etc/exports. You might want to unexport the filesystems if you discover a security breach or are running diagnostics. To do so, run
- To export all filesystems, which you might need after you've unexported them all. Use
exportfs -a to export all filesystems.
- To show all exported filesystems. Use
exportfs -v to list filesystems that are currently exported.
The opposite of exporting. A jargon term meaning to make a previously exported NFS filesystem unavailable.