Skip site navigation (1)Skip section navigation (2)
Date:      14 Jan 1997 17:35:53 -0000
From:      root@blackfire.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/2495: mountd does not like any lines but the first one (/etc/exports)
Message-ID:  <19970114173553.632.qmail@blackfire.com>
Resent-Message-ID: <199701141740.JAA25279@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2495
>Category:       bin
>Synopsis:       mountd does not like any lines in /etc/exports except 1st one
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 14 09:40:01 PST 1997
>Last-Modified:
>Originator:     System Administrator
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	FreeBSD 3.0-CURRENT, running on a dual-homed host, exporting several
	drives to one host.

	Client is running FreeBSD 2.1.6-RELEASE.

>Description:

	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)

bash# ./mountd
Getting export list.
Got line /usr/home		-maproot=0		ai
Making new ep fs=0x20015,0x1
doing opt -maproot=0		ai
got host ai
Got line /usr/local/bin		-maproot=0		ai
Found ep fs=0x20015,0x1
doing opt -maproot=0		ai
got host ai
* Can't change attributes for /usr/local/bin.
Bad exports list line /usr/local/bin		-maprootGot line /usr/local/etc		-maproot=0		ai
Found ep fs=0x20015,0x1
doing opt -maproot=0		ai
got host ai
* Can't change attributes for /usr/local/etc.
Bad exports list line /usr/local/etc		-maprootGot line /usr/local/sbin		-maproot=0		ai
Found ep fs=0x20015,0x1
doing opt -maproot=0		ai
got host ai
* Can't change attributes for /usr/local/sbin.
Bad exports list line /usr/local/sbin		-maprootGetting mount list.
Here we go.

At this point, it talks to the first directory only...

>Fix:
	
	None known.

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970114173553.632.qmail>