You can configure the NFS server by editing the /etc/exports file. This file is similar to the /etc/fstab file in that it is used to set the permissions for the file systems being exported. The entries look like this:
/file/system yourhost(options) *.yourdomain.com( options) 220.127.116.11/24(options)
This shows three common clients to which to share /file/system. The first, yourhost, shares /file/system to just one host. The second, .yourdomain.com, uses the asterisk (*) as a wildcard to enable all hosts in yourdomain.com to access /file/system. The third share enables all hosts of the Class C network, 18.104.22.168, to access /file/share. For security, it is best not to use shares like the last two across the Internet because all data will be readable by any network the data passes by.
Table 22.1 shows some common options.
Was this article helpful?