There is no way to export two (2) subdirectories on a same files system. ----------------------------------------------------------------- This is working when /usr/other is on /usr, and /usr/local is on a different file system: # more /etc/fstab /dev/wd0s2b none swap sw 0 0 /dev/wd0a / ufs rw 1 1 /dev/wd0s2e /usr ufs rw 1 1 /dev/wd0s3e /usr/local ufs rw 1 1 # more /etc/exports /usr/local -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d /usr/other -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d ----------------------------------------------------------------- This is not working: # more /etc/fstab /dev/wd0s2b none swap sw 0 0 /dev/wd0a / ufs rw 1 1 /dev/wd0s2e /usr ufs rw 1 1 # more /etc/exports /usr/other -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d /usr/local -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d Dec 22 05:56:17 myname mountd[76]: Can't change attributes for /usr/local. Dec 22 05:56:17 myname mountd[76]: Bad exports list line /usr/local -ro -mapall Dec 22 05:56:17 myname mountd[76]: Bad exports list line /usr/local -ro -mapall If changing the /etc/exports to /usr -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d then the clients can only mount entire /usr, but not /usr/local and /usr/other. ----------------------------------------------------------------- Fix: I hope this can be fixed. If this problem is the original design for the kernel and won't be resolved, please let me know. Thanks. How-To-Repeat: This can be repeated following above description.
As Jin Guojun[ITG] wrote: > > There is no way to export two (2) subdirectories on a same > files system. > /usr/other -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d > /usr/local -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d > > Dec 22 05:56:17 myname mountd[76]: Can't change attributes for /usr/local. > Dec 22 05:56:17 myname mountd[76]: Bad exports list line /usr/local -ro -mapall > Dec 22 05:56:17 myname mountd[76]: Bad exports list line /usr/local -ro -mapall Please, read the man page for exports(5). By the nature of how NFS exporting works, you can have only one set of attributes per physical file system. Our exports enforces this by only allowing multiple subdirectories of a single physical file system if they appear in the same line: /usr/other /usr/local -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
State Changed From-To: open->closed Pilot error. The behaviour is described in the man page of exports(5).