
#UBUNTU SETUP NFS SHARE HOW TO#
To find the IP address of a machine, you can visit our post on How to Find the IP address.Ĭ. client is the IP address or the subnet of the client that wants to access the shared directories. export_directory is the directory you want to share.Ĭ. In the /etc/exports file, add the configuration lines using the following syntax: export_directory1 client1(options) client2(options).clientN(options).Įxport_directory2 client1(options) client2(options).clientN(options).Įxport_directoryN client1(options) client2(options).clientN(options).Ī. The NFS configuration file is /etc/exports which determine which clients will have access to the exported directories. Next, we will configure NFS for the sharing of the export directories. Now, you will see that the /var/ nfs-share is now owned by nobody:nogroup. You can confirm the new owner through the following command: $ ls -la /var/ nfs-share Run the following command to change the ownership of /var/ nfs-share directory from root to nobody:nogroup: $ sudo chown nobody:nogroup /var/nfs-share We will not change the ownership of the second directory it will remain owned by the root user. From our two export directories ( /var/ nfs-share and /var/ nfs-share1), we will change the ownership of one of the directory /var/ nfs-share to nobody:nogroup. You can verify it by running the ls commands as follows: $ ls -la /var/nfs-share As these directories were created with sudo, therefore the root user currently owns them.

Run the following commands with sudo to do so: $ sudo mkdir -p /var/nfs-share First, we will have to create these directories. Let's say we want to export two directories /var/nfs–share and /var/nfs-share1. On the server machine, create an export directory you want to share with the clients. Now, NFS server will be installed successfully. After the installation is completed, you can verify it by running the following command in Terminal: $ dpkg -l | grep nfs-kernel-server After running the above command, the system will prompt with the y/n option.
#UBUNTU SETUP NFS SHARE INSTALL#
Then install nfs-kernel-server package as follows: $ sudo apt install nfs-kernel-server First, update the local repository index: $ sudo apt update On the machine to be setup as an NFS server, you will need to install nfs-kernel-server. Here, we will be using the two machines with the following details:

How to set up NFS server and client on Linux Mint 20 ? Previously, we dealt with how to configure the NFS client and server on the Debian system. In this context, we shall look into how to configure the NFS server and client on Linux Mint 20. Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform Linux Mint related Software Installation tasks. NFS (Network File System) works in the form of a client-server model where the machine sharing the directories is known as the NFS server whereas the machine accessing those directories is known as the NFS client.
