Configuring NFS Servers and Clients
The two key files to NFS are /etc/exports and /etc/fstab. The exports file is configured on the server side and specifies which directories are to be shared with which clients and each client's access rights. The fstab file is configured on the client side and specifies which servers to contact for certain directories, as well as where to place them in the directory tree.
Setting Up the /etc/exports File
The /etc/exports file specifies which directories to share with which hosts on the network. You only need to set up this file on your NFS servers.
The /etc/exports file follows this format:
/directory/to/export host1(permissions) host2(permissions) host3(permissions) host4 (permissions) # # Comments begin ...
Get Red Hat® Linux® 7 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.