From owner-freebsd-questions Tue Apr 17 1:14:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by hub.freebsd.org (Postfix) with ESMTP id 9107037B43C for ; Tue, 17 Apr 2001 01:14:22 -0700 (PDT) (envelope-from ryan@sasknow.com) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.9.3/8.9.3) with ESMTP id CAA79426; Tue, 17 Apr 2001 02:14:16 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Tue, 17 Apr 2001 02:14:16 -0600 (CST) From: Ryan Thompson To: "Elliot L. Tobin" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: NFS Server In-Reply-To: Message-ID: Organization: SaskNow Technologies [www.sasknow.com] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Elliot L. Tobin wrote to freebsd-questions@FreeBSD.ORG: > I have configured my FreeBSD 4.3-RC box as a NFS Server, and I have added > two machines (hostA and hostB) into my /etc/hosts, yet when I start > mountd, it compalins about my /etc/exports saying "bad exports list line > in /usr/local/www/data/images > > Here in my /etc/exports: > > /usr/local/www/data/images -alldirs hostA hostB You didn't specify any credential options. -alldirs just allows clients to mount any subdirectory of the given directory as its own mount point, and says nothing about actual access. You should normally use one of -mapuser, -maproot, or -kerb to specify how client credentials are assigned on the exporting system (or, I suppose, -public, if you really don't care who has write access to the export :-) Without any of those options, the export is ambiguous, and correctly generates an error. Read the man page exports(5) to determine which of the options applies to your situation, and what the option syntax is, or let us know exactly what this export is used for, and we'll be glad to offer you configuration advice. For example, between trusted hosts, this is common: /usr/local/www/data/images -maproot=0 hostA hostB Would allow root on hostA and hostB root access to the NFS export (hostA and hostB should definitely be trusted machines), and map all other client UIDs to UIDs on the server. Hope this helps, - Ryan > My /etc/hosts is: > > xxx.yyy.zzz.aaa hostA.fqdn hostA > aaa.bbb.ccc.ddd hostB.fqdn hostB > > ------ > > What am I missing? Or what could be wrong with my /etc/exports file? > Thanks for the help.. > > ------------------------------------------------------> > Elliot L. Tobin - UD/CS '02 > Univ. of Delaware - Computer Science, Economics > -----------------------------------------------------> > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Ryan Thompson Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message