Sharing a Directory Between Two UNIX Systems (NFS)

Sun Microsystem’s Network File System (NFS) has become a standard feature on all TCP/IP implementations of UNIX and Linux.

An NFS server system can export one or more of its local directories so that they are accessible to other UNIX systems. These directories must be listed in /etc/exports.

Take a look at these example contents of /etc/exports on the system zebra.

/projects/acme
/usr/fred/reports    -ro
/usr/fred/documents  -access=lion:rhino
/usr/jane/status     -rw=tiger

The /projects/acme directory has no modifiers in the example /etc/exports. This means that any other system in the network can mount that filesystem like this:

mount zebra:/projects/acme /acme

Assume that system tiger is in the same ...

Get Practical UNIX 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.