Show Table of Contents
22.214.171.124. Beware of Syntax Errors
The NFS server determines which file systems to export and which hosts to export these directories to by consulting the
/etc/exportsfile. Be careful not to add extraneous spaces when editing this file.
For instance, the following line in the
/etc/exportsfile shares the directory
/tmp/nfs/to the host
bob.example.comwith read/write permissions.
The following line in the
/etc/exportsfile, on the other hand, shares the same directory to the host
bob.example.comwith read-only permissions and shares it to the world with read/write permissions due to a single space character after the hostname.
/tmp/nfs/ bob.example.com (rw)
It is good practice to check any configured NFS shares by using the
showmountcommand to verify what is being shared: