Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Aug 1995 20:11:33 +0200
From:      Stefan Petri <petri@ibr.cs.tu-bs.de>
To:        graichen@omega.physik.fu-berlin.de
Cc:        bugs@FreeBSD.org
Subject:   /etc/exports & nis/yp netgroups
Message-ID:  <199508041811.UAA04055@achill.ibr.cs.tu-bs.de>
In-Reply-To: Thomas Graichen's message of Fri, 4 Aug 1995 18:25:38 %2B0200 (MET DST) <9508041625.AA05140@omega.physik.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi!

Thomas>	FreeBSD seems to have problems using netgroups in /etc/exports
Thomas>	- if i put a netgroup of hostnames (amd) into exports - i get
Thomas>	the following in messages:

Thomas>	Aug  4 18:17:14 julia mountd[661]: Gethostbyname failed
Thomas>	Aug  4 18:17:14 julia mountd[661]: Bad exports list line /usr   -maproot

The first trick is to put a ``+'' into /etc/netgroup, otherwise your
yp-servers won't be queried.

The other problem is that mountd is started too early after ypbind, so that
ypbind isn't operational yet, thus mountd cant resolve the netgroup. My
local fix is to reorder /etc/rc like this:

# Start ypbind if we're an NIS client
if [ "X${nis_clientflags}" != X"NO" ]; then
        echo -n ' ypbind'; ypbind ${nis_clientflags}
fi

# $rwhod is imported from /etc/sysconfig;
# if $rwhod is set to YES, rwhod is run.
if [ "X${rwhod}" = X"YES" ]; then
        echo -n ' rwhod';       rwhod
fi

if [ "X${nfs_client}" = X"YES" ]; then
        echo -n ' nfsiod';              nfsiod -n 4
fi

if [ "X${nfs_server}" = X"YES" -a -r /etc/exports ]; then
        echo -n ' nfsd';                nfsd -u -t 4
        echo -n ' mountd';              mountd
fi

Of course this no generraly rliable fix, because it depends on the
relative speed of starting all those daemons vs. response time of your
yp^H^HNIS servers.



							Stefan



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