From owner-freebsd-questions@FreeBSD.ORG Sun Jul 22 08:49:46 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D7F716A41A for ; Sun, 22 Jul 2007 08:49:46 +0000 (UTC) (envelope-from beech@freebsd.org) Received: from stargate.alaskaparadise.com (75-96-237-24.gci.net [24.237.96.75]) by mx1.freebsd.org (Postfix) with ESMTP id 2942113C45D for ; Sun, 22 Jul 2007 08:49:46 +0000 (UTC) (envelope-from beech@freebsd.org) Received: by stargate.alaskaparadise.com (Postfix, from userid 0) id 8FC537FFC; Sun, 22 Jul 2007 00:49:45 -0800 (AKDT) From: Beech Rintoul To: freebsd-questions@freebsd.org User-Agent: KMail/1.9.6 References: <1185090925.17559.29.camel@joe.realss.com> In-Reply-To: <1185090925.17559.29.camel@joe.realss.com> X-Face: jC2w\k*Q1\0DA2Q0Eh&BrP/Rt2M,^2O#R07VoT98m*>miQF9%Bi9vy`F6cPjwEe?m,)=?utf-8?q?2=0A=09X=3FM=5C=3AOE9QgZ?="xT3/n3,3MJ7N=Cfkmi%f(w^~X"SUxn>; 27NO; C+)g[7J`$G*SN>{<=?utf-8?q?O=3Bg7=7C=0A=09o=7D=265A=5D4?=@7D`=Eb@Zs1Ln814?]|k@'bG=.Ca"[|8+_.OsNAo8!#?4u MIME-Version: 1.0 Content-Disposition: inline Date: Sun, 22 Jul 2007 00:49:38 -0800 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <200707220049.41237.beech@freebsd.org> Subject: Re: 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 Reply-To: Beech Rintoul List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jul 2007 08:49:46 -0000 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 =E2=80=9Ccan't change > attributes=E2=80=9D and that I have a =E2=80=9Cbad exports list= =E2=80=9D 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 =2D-=20 =2D------------------------------------------------------------------------= =2D------------- Beech Rintoul - FreeBSD Developer - beech@FreeBSD.org /"\ 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 =2D------------------------------------------------------------------------= =2D-------------