From owner-freebsd-questions@FreeBSD.ORG Sat Sep 30 21:21:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 022A416A412 for ; Sat, 30 Sep 2006 21:21:32 +0000 (UTC) (envelope-from duncan.fbsd@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC87443D5A for ; Sat, 30 Sep 2006 21:21:29 +0000 (GMT) (envelope-from duncan.fbsd@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so1757164pye for ; Sat, 30 Sep 2006 14:21:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=NXW4W57zraDlf614p5fghAv75k0dV+N/ftHuamq7GHvt7HAtLiVeyr2y+eOxV/rgM8Icpf5REMP6fKkVbEGxKRcLJqhnFoCvJIGFXQanNZnzbUph1CHcX+ggc8fzqReDWfH1zDsxwp7NI3tb/Y4B21uNYeKCfvw85gGyPX2rzF8= Received: by 10.35.123.10 with SMTP id a10mr3650925pyn; Sat, 30 Sep 2006 14:21:29 -0700 (PDT) Received: from pres1750.airedalians.com ( [75.7.74.134]) by mx.gmail.com with ESMTP id k62sm5628201pyk.2006.09.30.14.21.27; Sat, 30 Sep 2006 14:21:28 -0700 (PDT) From: "Donald J. O'Neill" To: freebsd-questions@freebsd.org Date: Sat, 30 Sep 2006 16:21:23 -0500 User-Agent: KMail/1.9.4 References: <20060930183932.GA2712@teddy.fas.com> In-Reply-To: <20060930183932.GA2712@teddy.fas.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609301621.23425.duncan.fbsd@gmail.com> Cc: stan Subject: Re: Problems properly setting up /etc/exports 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: Sat, 30 Sep 2006 21:21:32 -0000 On Saturday 30 September 2006 13:39, stan wrote: > I've got a FBSD 6 machine built from a 6.2 PRERELEASE set of sources > that I need to use as an NFS server for some other similar machines. > If I specify the machines by host name, or IP address in /etc/exports, > I can mount the requisite directories from the test client. > > However, I really need to be able to allow 2 whole 1/2 class C's > to mount these directories. My reading of the /etc/exports man page > leads me to believe that I should be able to use a line like this: > > /usr/ports/distfiles maproot=root -network aaa.bbb.ccc.0 -mask > 255.255.255.128 > > When I do this, and start mountd with the -d flag, I get: > > ountd: getting export list > mountd: got line /usr/ports/distfiles maproot=root -network > aaa.bbb.ccc.0 -mask 255.255.255.128mountd: making new ep > fs=0x3e331e2f,0xe47d1981 > > But when I try to mount from a client n this network, it reports > premission denied. > > I also tried putting a line like this in /etc/exports: > > /usr/ports/distfiles maproot=root -network mine > > and putting the following in /etc/networks: > > mine aaa.bbb > > But I still get the same error. > > What am I doing wrong? Try this line in /etc/exports: /usr /usr/ports /usr/ports/distfiles -maproot=root \ -network aaa.bbb.ccc -mask 255.255.255.128 Do you have something like this in /etc/rc.conf: rpcbind_enable="YES" nfs_server_enable="YES" mountd_flags="-r" That should help you. Don