Andrew L. Gould wrote:
I had a hard time sharing NFS directories that were not actual mount points. When I changed the shared directories in /etc/exports to actual mount points (not directories below them) with -alldirs, I was able to mount the specific subdirectories I wanted on the client side. Although /etc/exports allows me to limit access to my own user, the idea of sharing whole mount points makes me a little nervous, so I don't use NFS much. I'm sure I've done something wrong; but I found it easier to use the alternatives below than to hunt down the problem.
OK, this appears to be a different problem, I understod Robert was able to mount.
Anyway, the NFS documentation isn't completely clear but, you can export any directory, say /var/ftp/pub which I have on my /var partition.
But you can only use the option -alldirs when exporting a partition. Exporting a partition with -alldirs allows you to mount any sub-
directory. If you do not want to export all directories in the whole partition you have to list each directory you want to be mountable.
Also, permisions are set on a per partition-host/net combination, so this is NOT ok:
/var/ftp/pub -ro -network 172.16.0.0 -mask 255.255.0.0 /var/httpd -rw -network 172.16.0.0 -mask 255.255.0.0
however this would be ok:
/var/ftp/pub -ro -network 172.16.0.0 -mask 255.255.0.0 /var/ftp/pub -rw -network 172.17.0.0 -mask 255.255.0.0 /home/httpd -rw -network 172.16.0.0 -mask 255.255.0.0
this is really anoying :-( due to the permissions, and the the restric- tion on -alldirs you have to partition your disk according to the per- missions you want to nfs export the different things.
It might be worth creating a slice for nfs exports, it is easier to repartion as needed if the slice doesn't also host your OS.
Cheers, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"