From owner-freebsd-bugs Tue Jan 14 11:43:01 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA03089 for bugs-outgoing; Tue, 14 Jan 1997 11:43:01 -0800 (PST) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA03040; Tue, 14 Jan 1997 11:41:36 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hydrogen.nike.efn.org (8.8.4/8.8.4) with SMTP id LAA10060; Tue, 14 Jan 1997 11:40:59 -0800 (PST) Date: Tue, 14 Jan 1997 11:40:58 -0800 (PST) From: John-Mark Gurney Reply-To: John-Mark Gurney To: root@blackfire.com cc: FreeBSD-gnats-submit@FreeBSD.ORG, GNATS Management , freebsd-bugs@freefall.freebsd.org Subject: Re: bin/2495: mountd does not like any lines but the first one (/etc/exports) In-Reply-To: <19970114173553.632.qmail@blackfire.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On 14 Jan 1997 root@blackfire.com wrote: > >Synopsis: mountd does not like any lines in /etc/exports except 1st one [...] > This prvents me from being able to mount any directories except first > one. > > >How-To-Repeat: > > Use the following /etc/exports: > /usr/home -maproot=0 ai > /usr/local/bin -maproot=0 ai > /usr/local/etc -maproot=0 ai > /usr/local/sbin -maproot=0 ai > > Directories can be individually removed, ANY of the above works if it is the > FIRST entry. The '-maproot=0' can be removed with no effect on 2-4 lines. > > Client gives access denied errors. If mountd is compiled from FreeBSD-current > source, with the DEBUG define, it gives the following output: > (I have put a star before each line that appears in the logs when compiled > without DEBUG) I hate to say it but read the mn page for mountd... you will notice that you can only have ONE line that modifies a file system for a host... i.e.. to fix about have your /etc/exports like: /usr/home /usr/local/bin /usr/local/etc /usr/local/sbin -maproot=0 ai basicly... I usually recommend using just one line per host... unless you want the permissions for all hosts... also note... say you have something like this: /usr/home systema /usr/anon/ftp this will export ONLY /usr/home to systema, but to everyone else can access /usr/anon/ftp... this is a limitation of mountd/nfs (I'm not sure exactly were the limitation is)... hope this helps... John-Mark gurney_j@efn.org http://resnet.uoregon.edu/~gurney_j/ Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix)