Re: is this possible? (let user able to access two moint points, one beneath another)
On Sunday 22 July 2007, Zhang Weiwu said: > On Sun, 2007-07-22 at 00:43 -0800, Beech Rintoul wrote: > > Try writing the export: > > > > /var/ftp/pub /var/ftp/pub/music -ro > > This worked! Thanks otherwise I wouldn't know the difference. > > I used to write such thing on Linux that worked: > /var/ftp/pub parameter > /var/ftp/pub another_set_of_parameters > /var/ftp/pub/music parameters > /var/ftp/pub/music another_set_of_parameters > > > P.S. I can know why you didn't put FreeBSD Questions list on 'cc'? > If you simply forgotten I'd like to forward this reply there. Sorry, wrong reply button. Anyway you're welcome I've run into the same problem myself, FreeBSD won't let you export two directories from the same filesystem unless you do it that way. -- --- Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED] /"\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.FreeBSD.org/releases/6.2R/announce.html --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: is this possible? (let user able to access two moint points, one beneath another)
On Sun, 2007-07-22 at 00:49 -0800, Beech Rintoul wrote: > Try writing the export: > > /var/ftp/pub /var/ftp/pub/music -ro Thanks, this solved the problem instantly! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: is this possible? (let user able to access two moint points, one beneath another)
On Saturday 21 July 2007, Zhang Weiwu said: > Dear all > > I wish to export two directories for other people to mount, so I > write in my /etc/exports: > > /var/ftp/pub -ro > /var/ftp/pub/music -ro > > Start NFS server then I found only /var/ftp/music is successfully > exported, /var/log/message says: > > Jul 22 15:34:32 exupery mountd[404]: can't change > attributes for /var/ftp/pub/music > Jul 22 15:34:32 exupery mountd[404]: bad exports list > line /var/ftp/pub/music -ro > > I cannot understand what is "change attributes" and why it cannot > be done, so I go to read handbook. Here is the handbook section > about this issue > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/networking.htm >l#EXPORTS-ERRORS > > 12.13. Why does mountd keep telling me it “can't change > attributes” and that I have a “bad exports list” on my > FreeBSD NFS server? > > The most frequent problem is not understanding the correct > format of /etc/exports. Please review exports(5) and the > NFS entry in the Handbook, especially the section on configuring > NFS. > > And yes, I reviewed both document, and I am sure the format is > correct because it's only two similar lines and the first line is > accepted by server: > /var/ftp/pub -ro > /var/ftp/pub/music -ro > > Give up on this, then I think probably I can use -alldirs. I write > my /etc/exports: > /var/ftp/pub -alldirs -ro > > Start NFS server, check /var/log/messages I found: > > Jul 22 15:30:37 exupery mountd[404]: -alldirs requested > but /var/ftp/pub is not a filesystem mountpoint > Jul 22 15:30:37 exupery mountd[404]: bad exports list > line /var/ftp/pub -alldirs > > This seems to suggest that I cannot use -alldirs because > /var/ftp/pub is a plain directory, only a mount point can use > -alldirs (in my case, /var). > > So I am stuck here. Any suggestion getting me out? Is it possible > at all to export a directory and also it's sub-directory? > > Best Regards Try writing the export: /var/ftp/pub /var/ftp/pub/music -ro -- --- Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED] /"\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.FreeBSD.org/releases/6.2R/announce.html --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
is this possible? (let user able to access two moint points, one beneath another)
Dear all I wish to export two directories for other people to mount, so I write in my /etc/exports: /var/ftp/pub -ro /var/ftp/pub/music -ro Start NFS server then I found only /var/ftp/music is successfully exported, /var/log/message says: Jul 22 15:34:32 exupery mountd[404]: can't change attributes for /var/ftp/pub/music Jul 22 15:34:32 exupery mountd[404]: bad exports list line /var/ftp/pub/music -ro I cannot understand what is "change attributes" and why it cannot be done, so I go to read handbook. Here is the handbook section about this issue http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/networking.html#EXPORTS-ERRORS 12.13. Why does mountd keep telling me it “can't change attributes” and that I have a “bad exports list” on my FreeBSD NFS server? The most frequent problem is not understanding the correct format of /etc/exports. Please review exports(5) and the NFS entry in the Handbook, especially the section on configuring NFS. And yes, I reviewed both document, and I am sure the format is correct because it's only two similar lines and the first line is accepted by server: /var/ftp/pub -ro /var/ftp/pub/music -ro Give up on this, then I think probably I can use -alldirs. I write my /etc/exports: /var/ftp/pub -alldirs -ro Start NFS server, check /var/log/messages I found: Jul 22 15:30:37 exupery mountd[404]: -alldirs requested but /var/ftp/pub is not a filesystem mountpoint Jul 22 15:30:37 exupery mountd[404]: bad exports list line /var/ftp/pub -alldirs This seems to suggest that I cannot use -alldirs because /var/ftp/pub is a plain directory, only a mount point can use -alldirs (in my case, /var). So I am stuck here. Any suggestion getting me out? Is it possible at all to export a directory and also it's sub-directory? Best Regards -- 锐业软服(国内业务) http://www.realss.cn Real SoftService http://www.realss.com 销售咨询(Sales Department):0086 592 20 99987 (Chinese, German, English) 国际业务(International Sales): 0086 10 8460 6011 (German and English) 联系:厦门大学科技园,嘉庚二号楼6楼 邮政:厦门大学2312号信箱(邮编361005) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"