From owner-freebsd-questions Sun Mar 21 16:43: 2 1999 Delivered-To: freebsd-questions@freebsd.org Received: from quackerjack.cc.vt.edu (quackerjack.cc.vt.edu [198.82.160.250]) by hub.freebsd.org (Postfix) with ESMTP id 54BDB14F88 for ; Sun, 21 Mar 1999 16:42:58 -0800 (PST) (envelope-from jobaldwi@vt.edu) Received: from sable.cc.vt.edu (sable.cc.vt.edu [128.173.16.30]) by quackerjack.cc.vt.edu (8.8.8/8.8.8) with ESMTP id TAA02604; Sun, 21 Mar 1999 19:42:39 -0500 (EST) Received: from john.baldwin.cx (jobaldwi.campus.vt.edu [198.82.67.63]) by sable.cc.vt.edu (8.8.8/8.8.8) with ESMTP id TAA29698; Sun, 21 Mar 1999 19:42:36 -0500 (EST) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199903212351.SAA05651@cc942873-a.ewndsr1.nj.home.com> Date: Sun, 21 Mar 1999 19:42:38 -0500 (EST) From: John Baldwin To: cjclark@home.com Subject: Re: Why are NIS netgroups ignored... Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 21-Mar-99 Crist J. Clark wrote: > John Baldwin wrote, >> On 21-Mar-99 Crist J. Clark wrote: >> > John Baldwin wrote, >> > OK, next questions. ;) Does, >> > >> > % ypcat -x >> > >> > Show that the netgroup maps are being transfered to the machine in >> > question? >> >> Apparently not: >> >> > ypcat -x >> Use "passwd" for "passwd.byname" >> Use "master.passwd" for "master.passwd.byname" >> Use "group" for "group.byname" >> Use "networks" for "networks.byaddr" >> Use "hosts" for "hosts.byaddr" >> Use "protocols" for "protocols.bynumber" >> Use "services" for "services.byname" >> Use "aliases" for "mail.aliases" >> Use "ethers" for "ethers.byname" > > OK, then I am starting to think it is a server problem, not the > client. The server does not seem to be pushing the netgroup > maps. But... Well, then again, the netgroup map doesn't have a nickname, so it wouldn't be listed in ypcat -x (which only lists nicknames). >> > Do Digital UNIX and FreeBSD use the same format for netgroups (the >> > 'COMPATIBILTY' note on the manpage)? >> >> Yes. In fact, this actual machine is the master NIS server. There is one >> Digital UNIX slave server, and the Digital UNIX clients insist on using it >> as >> their server, while the FreeBSD clients insist on using the master server as >> their server. I can use ypcat and ypmatch with the netgroup map just fine >> however. > > Now I am really confused. The FreeBSD machine is the master, but it > does not have the /etc/netgroup file? Which machines have which files, > and on which machine do the ypcat and ypmatch commands work? And on > which machines do they not work? Are all of these machines on the > same LAN? Do you have a master and slave on the same LAN? The FreeBSD machine is the master server, and does not have a local /etc/netgroup file. There is a /var/yp/netgroup file whose database is stored in the NIS maps in /var/yp/. The ypcat and ypmatch work on all machines, including the FreeBSD master server. I should have also said that neither the FreeBSD client workstations nor the Digital UNIX workstations honor netgroups in .rhosts. However, the Digital UNIX servers do honor netgroups in /etc/exports. All of the machines in question are on the same LAN, including both the FreeBSD master, and a Digital UNIX slave. It is as if the netgroup map is honored some times but not others. Hope I haven't confused you more and thanks for sticking it out this far. > Sorry if I missed understood something somewhere. > -- > Crist J. Clark cjclark@home.com --- John Baldwin -- http://members.freedomnet.com/~jbaldwin/ PGP Key: http://members.freedomnet.com/~jbaldwin/pgpkey.asc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message