From owner-freebsd-net@FreeBSD.ORG Tue May 17 14:01:31 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA80616A4CE for ; Tue, 17 May 2005 14:01:31 +0000 (GMT) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54FA543DC2 for ; Tue, 17 May 2005 14:01:31 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix3-2.free.fr (Postfix) with ESMTP id 1492AC06C for ; Tue, 17 May 2005 16:01:26 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id 45E7E4080; Tue, 17 May 2005 16:01:25 +0200 (CEST) Date: Tue, 17 May 2005 16:01:25 +0200 From: Jeremie Le Hen To: freebsd-net@FreeBSD.org Message-ID: <20050517140125.GD14297@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: Can't export /usr/ports X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 14:01:32 -0000 Hi, my current exports(5) file looks something like this : I copied the last line and replaced the path with /usr/ports, when I try to reload mountd(8), I get an error in /var/log/messages : Look at this small session. The initial exports(5) file works fine. The second one generate an error. %%% propane:tataz# cat /etc/exports /usr/home/ncvs -ro -network 172.16.0.0 -mask 255.255.0.0 /usr/home/tataz -maproot=tataz -network 172.16.80.0 -mask 255.255.255.0 propane:tataz# sed -i '' '${ p; s%home/tataz%ports%; s/tataz/root/; }' /etc/exports propane:tataz# cat /etc/exports /usr/home/ncvs -ro -network 172.16.0.0 -mask 255.255.0.0 /usr/home/tataz -maproot=tataz -network 172.16.80.0 -mask 255.255.255.0 /usr/ports -maproot=root -network 172.16.80.0 -mask 255.255.255.0 propane:tataz# /etc/rc.d/mountd reload Reloading mountd config files. propane:tataz# tail -n 2 /var/log/messages May 17 15:33:03 propane mountd[367]: can't change attributes for /usr/ports May 17 15:33:03 propane mountd[367]: bad exports list line /usr/ports -maproot %%% I checked mountd(8) sources, and this error messages appears when the mount(2) syscall fails (I assume this is the way mountd(8) informs the kernel about a directory to be exported). I'm sure this is a foolish error from me, but I can't figure one. Thanks. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >