From owner-freebsd-bugs Fri Aug 4 11:22:10 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id LAA24479 for bugs-outgoing; Fri, 4 Aug 1995 11:22:10 -0700 Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id LAA24473 for ; Fri, 4 Aug 1995 11:22:09 -0700 Received: from ra.ibr.cs.tu-bs.de (ra.ibr.cs.tu-bs.de [134.169.246.34]) by who.cdrom.com (8.6.11/8.6.11) with ESMTP id LAA01780 for ; Fri, 4 Aug 1995 11:21:58 -0700 Received: from achill [134.169.34.18] by ra.ibr.cs.tu-bs.de (8.6.10/tubsibr) with ESMTP id UAA15590; Fri, 4 Aug 1995 20:11:34 +0200 Received: from petri@localhost by achill.ibr.cs.tu-bs.de (8.6.10/tubsibr) id UAA04055; Fri, 4 Aug 1995 20:11:33 +0200 Date: Fri, 4 Aug 1995 20:11:33 +0200 From: Stefan Petri Message-Id: <199508041811.UAA04055@achill.ibr.cs.tu-bs.de> To: graichen@omega.physik.fu-berlin.de CC: bugs@FreeBSD.org In-reply-to: Thomas Graichen's message of Fri, 4 Aug 1995 18:25:38 +0200 (MET DST) <9508041625.AA05140@omega.physik.fu-berlin.de> Subject: /etc/exports & nis/yp netgroups Reply-to: petri@ibr.cs.tu-bs.de Sender: bugs-owner@FreeBSD.org Precedence: bulk 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