Subject: mountd/exports problem
To: None <port-macppc@netbsd.org>
From: Daniel Starmer <Daniel_Starmer@Milton.Edu>
List: port-macppc
Date: 09/16/1999 20:19:47
OK, this is more specifically an OpenBSD question, but I figured you guys
would have more experience with netbooting macppc boxes, etc. (and since i
followed the iMac FAQ from
http://www.enchantedlearning.com/tech/netbsd_imac.shtml)

sooo

 I am having a problem with mountd.  I set up all the filesystems, 32mb
swap, etc...but apparently mountd doesnt like my /etc/exports:
(192.168.1.1 is my iMac, I am .2)

#       $OpenBSD: exports,v 1.1 1996/09/06 11:57:20 deraadt Exp $
#
# NFS exports Database
# See exports(5) for more information.  Be very careful, misconfiguration
# of this file can result in your filesystems being readable by the world.

/export/imac/root -maproot=root 192.168.1.1     
/export/imac/swap -maproot=root 192.168.1.1
/export/imac/usr  -maproot=root 192.168.1.1
/export/imac/home -maproot=root 192.168.1.1

 ---snip-----
  
when I start mountd, I get:

Sep 15 15:39:59 ascension mountd[12769]: Can't change attributes for
/export/imac/usr (192.168.1.1). 
Sep 15 15:39:59 ascension mountd[12769]: Bad exports list entry
(192.168.1.1) in line /export/imac/usr  -maproot
Sep 15 15:39:59 ascension mountd[12769]: Can't change attributes for
/export/imac/home (192.168.1.1). 
Sep 15 15:39:59 ascension mountd[12769]: Bad exports list entry
(192.168.1.1) in line /export/imac/home -maproot

and more errors for each entry i had in there.

I looked at mountd.c and saw that the errno was EPERM..

1 EPERM Operation not permitted. An attempt was made to perform an
operation limited to processes with appropriate privileges or to the owner
of a file or other resources.

But what could be causing this? I dont see anything that would restrict
permissions of mountd so that it couldnt access /export/* ...


TIA,
dan