Network File System (NFS) is a distributed file system protocol originally developed by Sun Microsystems in 1984,
allowing a user on a client computer to access files over a computer network much like local storage is accessed.


Configure NFS Server

Install NFS server components

sudo apt-get install nfs-common nfs-server -y

Create the nfs server shared folder, you can use an existing folder as well

sudo mkdir /var/nfs

give the mount point you just created liberal permissions.

sudo chmod -R 777 /var/nfs

sudo service nfs-kernel-server stop

sudo service nfs-kernel-server start

Open the NFS exports file where you configure the paths to share and their permissions

sudo nano /etc/exports

/var/nfs *(rw,sync,no_root_squash,subtree_check)

Tell NFS to read your newly created exports file

sudo exportfs