Configure a Network File System (NFS) and Export a File System on Linux

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

This lab is a practice lab on Network File System, or NFS. In this lab, we’ll configure an NFS server, create a directory to be exported, and export the directory to another server.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install, Start, and Enable NFS

Install the nfs-utils package. Then, start and enable the NFS server service.

Create a Read-Only Directory Named /engineering

Create a directory named /engineering. Change the permissons of the /engineering1 directory to read-only.

Configure the Exported Directory

Congifure the NFS export in the /etc/exports file. Set the directory to be exported as read-only. Export the /engineering file system to the network. Then, verify the directory has been exported.

Additional Resources


The Engineering team at XYZ Company has requested a network file share to be created on the network file server. It should be a read-only file system named /engineering and be exported to the engineering server, engsrv1. Good luck!

Your lab contains 2 Cloud Server instances. Log in to 1 of the provided server instances using the credentials provided:

ssh cloud_user@<PUBLIC_IP_OF_NODE>

Become the root user:

sudo -i

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?