Enabling the Network File System Service

The Network File System (NFS) provides for the mounting of directories across a network. Directories on a remote machine mounted via NFS on the local machine actually become part of the local machines file system.

Configuring the NFS service involves two parts:

  • Configuring the NFS server. This is the machine from which a directory is mounted. In my sample network, the NFS server is kanchi.

  • Configuring the NFS client. This is the machine mounting the directory. In my sample network, the NFS client is melkote.

This example demonstrates how to mount the kanchi's /home directory on melkote so that users have the same /home directory on both machines.

Configuring an NFS server

  1. As root, open the file /etc/exports ...

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