From owner-freebsd-questions Mon Sep 21 16:37:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA13439 for freebsd-questions-outgoing; Mon, 21 Sep 1998 16:37:01 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA13213 for ; Mon, 21 Sep 1998 16:35:27 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id QAA10527; Mon, 21 Sep 1998 16:34:30 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Mon, 21 Sep 1998 16:34:30 -0700 (PDT) From: Doug White To: Jane Frodo cc: dhw@whistle.com, FreeBSD-Questions@FreeBSD.ORG, jegelhof@cloud9.net Subject: Re: NIS Troubles: Starting over... In-Reply-To: <19980920221410.709.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 20 Sep 1998, Jane Frodo wrote: > Hi all. > I have completely started over, having found several things > in my "search for NIS" :=0 > > Here's what I've done, and where I am... > > --------------------------------------------------------------------------------------------------- > On the SERVER: > > /etc/hosts content: > 127.0.0.1 localhost.test.com localhost > > /etc/host.conf content: (yes, I want it to use DNS and not host) > bind > nis <--- this isn't needed; use DNS > /etc/group content: > > +:*:: > > /etc/passwd > > +:*:::::::: You MUST add the magic cookie +::::::::: (plus and nine colons) to the password database using 'vipw'. Modifying passwd directly will NOT work!! > /etc/rc.conf changes: > hostname="nismst.test.com" > nisdomainname="test.com" > nis_client_enable="YES" > nis_client_flags="-s" > nis_ypset_enable="NO" > nis_ypset_flags="" > nis_server_enable="YES" > nis_server_flags="" > nis_yppasswdd_enable="YES" > nis_yppasswdd_flags="-v -a -t /etc/master.passwd" > > /var/yp/Makefile modified to use /etc/master.passwd: > at line 108, replace > MASTER = $(YPDIR)/master.passwd > with > MASTER = $YPSRCDIR)/master.passwd ^ typo? Should be a ( there > SERVER: Everything appears normal. All logins work, > ypcat works for all map files tried, ypmatch works, passwd > changes local as well as NIS maps. > > CLIENT: No NIS logins work. passwd works correctly: it > both recognizes a bad password (when prompting for "old" > passwd) and successfully changes the NIS passwd. Having > changed it via the client, I can use the new password to login > on the server. > ypcat/ypmatch appear to be working fine. Huh? I don't understand what behavior you're describing. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message