Instiq
Chapter 5 · File sharing services·v1.0.0·Updated 7/7/2026·~11 min

What's changed: Initial version (topic 2.11, subtopics 2.11.1–2.11.2)

5.2Configuring and Managing an NFS Server

Key points

Learn to configure and manage NFS for sharing filesystems among Unix/Linux clients: the export definition file /etc/exports, applying it with exportfs, checking exports from a client with showmount, monitoring activity with nfsstat, checking RPC services with rpcinfo, the roles of mountd and the portmapper, and mount options plus persistence/verification via /etc/fstab and /proc/mounts.

When Linux servers—or Unix-like clients—need to share a filesystem directly, NFS (Network File System) is the standard choice. Where Samba implements SMB/CIFS for Windows, NFS is the long-standing protocol of the Unix/Linux world, built on top of RPC (Remote Procedure Call).

5.2.1Defining and applying exports

  • Directories to export and their access conditions are written in /etc/exports (e.g., /srv/data 192.168.1.0/24(rw,sync,no_root_squash)), listing host specs and mount options per directory.
  • Editing /etc/exports alone does not take effect immediately. exportfs reloads/applies the export table (exportfs -ra re-exports everything; exportfs -v lists current exports).

5.2.2Verification, monitoring, and RPC

Continue reading — free sign-up

You're reading the free preview. Sign up free to read this section in full, plus every chapter (including 4+) and all questions.