Linux File Sharing Using NFS(nfs server configuration on centos/Rhel)

tion NFS stands for Network File System . NFS is a distributed file system protocol devoloped by sun microsystems at the year of 1984.Using nfs users can acces the shared data on other computers it also allows to automount the file system by adding entries to /etc/fstab. Auto mounting NFS topic we will discuss on our next video.NFS is built on open network computing remote procedure call (ONC RPC). NFS has total for versions starts from NFSV1 to NFSV4.The configration file for NETWORK FILE SYSTEM (NFS) is /etc/exports. We have to add entry for the directory which has to be shared.we can also define some acess controll For nfs by editing the file.Here i am going to give a small example for /etc/exports file

/user/shared  192.168.1.110/24(rw,sync)
    
This means that the directory /user/shared is shared using nfs and only the client having  ip 192.168.1.110 and subnet 255.255.255.0 is permission to access the directory over nfs.we can change the ipaddress and subnet with a '*' symbol to allow access permission for all.


/user/shared  *(rw,sync)


and also we can change rw with ro for read only permission
showmount -e command will help to find which folders are shared on the server using nfs.the syntax is given below

 showmount -e 192.168.1.100



here 192.168.1.100 is the ip of my nfs server.The nfs configuration of nfs server and how to mount the nfs share on the client is shown in below video