NFS v3 versus NFS v4

Another consideration regarding NFS is the version you'll be using. Nowadays, most (if not all) Linux distributions default to NFS v4. However, there are some cases where you may have older servers on your network, and you'll need to be able to connect to their shares. While NFS v4 is definitely the preferred version going forward, you might need to connect to a node using the older protocol.

In both cases, directories on a file server can be shared via NFS by editing the /etc/exports file, which is where you'll list your shares (exports), one per line. We'll go over this file in more detail in the next section. But for now, keep in mind that the /etc/exports file is where you declare which directories on your filesystem are ...

Get Mastering Linux Network Administration now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.