PDA

View Full Version : [all variants] sharing a file via NFS



mahmoodn
May 2nd, 2011, 05:59 AM
Is it possible to share a file via NFS? Or only the folders can be shared?

For example I have shared /opt like this in /etc/exports

/opt 192.168.1.0/255.255.255.0(rw,no_subtree_check,sync,no_root_squ ash)

and in the client's /etc/fastab I wrote:

192.168.1.1:/opt /opt nfs defaults 0 0

It is ok and work fine. How about sharing a file? What should I write in the /etc/fstab?