From owner-freebsd-questions Mon Jul 14 23:59:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA10249 for questions-outgoing; Mon, 14 Jul 1997 23:59:38 -0700 (PDT) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA10215 for ; Mon, 14 Jul 1997 23:59:32 -0700 (PDT) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.8.5/8.6.12) id KAA02186; Tue, 15 Jul 1997 10:00:01 +0300 (IDT) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V1.3) id sma002178; Tue Jul 15 09:59:32 1997 Message-ID: <33CB1F63.57AC@barcode.co.il> Date: Tue, 15 Jul 1997 09:57:39 +0300 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m) MIME-Version: 1.0 To: Andrew Westrate CC: freebsd-questions@FreeBSD.ORG Subject: Re: NIS woes References: <199707142143.RAA02739@loos.ummu.umich.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Andrew Westrate wrote: > > I am trying to get NIS running on a small lan made up of just two machines > (but soon to be a few more). I have set up the first machine as the server, > and it starts ypserv when rebooted and creates all of the neccessary maps. I > then set up the other machine as a client, and I think I have it running > properly, because it starts ypbind, creates a file in /var/yp/bindings named > after the proper domainname, and it complains that it can't reach the nis > server when that machine is rebooted, BUT: in order to test nis, I added a > new user to master.passwd on the server, rebooted both machines, and then > tried to log in as that user on the client machine, and wasn't able to log in. > > > So basically I don't know if I have it working in general, but only the passwd > file isn't set up right, or if I have either the client or server or both set > up improperly. Does anyone have any ideas about how to fix this, or at least > about how to test it another way to see what works and what doesn't? Did you add '+' entries in the client's passwd file (by using vipw, of course)? If not, see the man page for passwd for more details on the format. Basically, to tell a machine to use whatever it finds in NIS map you need to have: +:::::::: in your passwd file. > > Also, I would like to set up the server to also be a client, but the first > time I did this, the machine wasn't able to boot because it was looking for > the server at startup, but there was no server running yet. Does anyone know > how to fix this too? > > Thanks, > Andy Westrate Nadav