How to create NFS Share on CentOS

How to create NFS Share on CentOS

NFS services should be install  check the services

service nfs status

which folder you want to share for Example /home/ISOFiles

NFS share information kept in /etc/exports file

so edit the file and add your share information

nano /etc/exports

add the line for your share and the host or network information who will access this share and permission

/home/ISOFiles 192.168.1.0/255.255.255.0(rw,sync)

save and exit

Now allow hosts to access

nano /etc/hosts.allow

add below line

portmap: 192.168.1.0/255.255.255.0

Now restart the nfs and portmap services

service nfs restart

service portmap restart

Note:- Firewall ports should be open for NFS

            Permission should be assigned on folder for users

Leave a Comment