To mount an NFS file system on a client:
Install the
nfs-utils
package:#
yum install nfs-utils
Use showmount -e to discover what file systems an NFS server exports, for example:
#
showmount -e host01.mydom.com
Export list for host01.mydom.com /var/folder 192.0.2.102 /usr/local/apps * /var/projects/proj1 192.168.1.0/24 mgmtpcUse the mount command to mount an exported NFS file system on an available mount point:
#
mount -t nfs -o ro,nosuid host01.mydoc.com:/usr/local/apps /apps
This example mounts
/usr/local/apps
exported byhost01.mydoc.com
with read-only permissions on/apps
. Thenosuid
option prevents remote users from gaining higher privileges by running asetuid
program.To configure the system to mount an NFS file system at boot time, add an entry for the file system to
/etc/fstab
, for example:host01.mydoc.com:/usr/local/apps /apps nfs ro,nosuid 0 0
For more information, see the mount(8)
, nfs(5)
,
and showmount(8)
manual pages.