clientDomainName*.foo.com. This could also be an IP address or an IP address and subnet mask. NIS group names can also be used. The directory is exported as read-only when no options specified.
The second instance of exportfs exports the same directory but allows the world to access it. The exportfs supports a number of options. In this case, the command allows read-write access.
The exportfs program is also used to remove an export. This is done using the -u option as shown below:
exportfs -u client DomainName:/a/path/name/on/the/server
The /etc/exports file is used to define exported NFS directories when NFS is started. Each line in the file defines the directory to be exported and how the directory can be accessed. The following is a sample /etc/exports file:
/home/guest (ro)
/pub *.local.dom(rw) (ro)
The first allows any user read-only access to the /home/guest directory. The second allows read-write access to computers with a domain name of local.dom and read-only access to everyone else.
Next: NFS Client Support »