From owner-freebsd-questions@FreeBSD.ORG Sun Jul 22 08:32:13 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 842B916A41B for ; Sun, 22 Jul 2007 08:32:13 +0000 (UTC) (envelope-from zhangweiwu@realss.com) Received: from bossdog.realss.com (bossdog.realss.com [211.157.108.128]) by mx1.freebsd.org (Postfix) with ESMTP id CE6F913C467 for ; Sun, 22 Jul 2007 08:32:12 +0000 (UTC) (envelope-from zhangweiwu@realss.com) Received: from localhost (unknown [127.0.0.1]) by bossdog.realss.com (Postfix) with ESMTP id 0414C1C0007 for ; Sun, 22 Jul 2007 16:02:06 +0800 (CST) Received: from bossdog.realss.com ([127.0.0.1]) by localhost (bossdog.realss.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30183-12 for ; Sun, 22 Jul 2007 16:02:04 +0800 (CST) Received: from [218.193.55.195] (26.224.77.125.board.xm.fj.dynamic.163data.com.cn [125.77.224.26]) by bossdog.realss.com (Postfix) with ESMTP id 956271C0006 for ; Sun, 22 Jul 2007 16:02:04 +0800 (CST) From: Zhang Weiwu To: questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Organization: Real Softservice Date: Sun, 22 Jul 2007 15:55:25 +0800 Message-Id: <1185090925.17559.29.camel@joe.realss.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at bossdog.realss.com Cc: Subject: is this possible? (let user able to access two moint points, one beneath another) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jul 2007 08:32:13 -0000 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)