I want to share
/share/bar etc via NFS on CentOS.
I ran into this common problem:
mount.nfs4: mounting 192.168.101.254:/share/foo failed, reason given by server: No such file or directory
The solution seems to be to export the parent directory
fsid=0 and then mount commands on the client use paths relateive to
server exports file:
/share 188.8.131.52/16(rw,fsid=0) /share/foo 184.108.40.206/16(ro) /share/bar 220.127.116.11/16(ro)
192.168.101.254:/foo /share/foo nfs4 intr
But if I want to export this from the server:
then won't this be available on machines other than
192.168.101.123 because many addresses have access to
/share and its subdirectories?
If so, this is an unacceptable security hole. If not, what is my assurance that no client can access
/share/private despite the fact that they can access
In summary, I need the server to export
/share/private to different client machines over nfs4.