From owner-freebsd-questions@FreeBSD.ORG Mon Oct 15 15:57:31 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7842216A418 for ; Mon, 15 Oct 2007 15:57:31 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.freebsd.org (Postfix) with ESMTP id E0CD613C448 for ; Mon, 15 Oct 2007 15:57:30 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from atlantis.dyndns.org (athedsl-305194.home.otenet.gr [85.73.239.200]) by rosebud.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l9FFvSS0009266 for ; Mon, 15 Oct 2007 18:57:29 +0300 Message-ID: <47138DE7.80800@otenet.gr> Date: Mon, 15 Oct 2007 18:57:27 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20071015054707.GA34948@parts-unknown.org> In-Reply-To: <20071015054707.GA34948@parts-unknown.org> Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 7bit Subject: Re: Following directions doesn't seem to work: Adding users in NIS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2007 15:57:31 -0000 David Benfell wrote: > Hello all, > > Where are there working directions for adding users under NIS? > > The instructions in the FreeBSD handbook don't seem to result in > added users being propagated out to slaves. And the failure is > silent, so I have no idea what I'm really supposed to be doing > to make this work. > > All I know is that added users end up in the main /etc/passwd > and /etc/master.passwd; the -Y option to pw seems to change nothing > other than to consume time "updating" (but I don't know what, since > the changes I'm looking for don't appear) various maps and "pushing" > the maps. > > And, having evidently done the *wrong* thing, how do I fix the > added users so they now appear in NIS? > > Thanks! > > The following comes from the handbook and works for me: copy your master.passwd to /var/yp, i.e: cp /etc/master.passwd /var/yp/master.passwd Edit the copy of master.passwd and exclude all "irrelevant" accounts (root,servers and so on) Then run: ypinit -m your-nis.domain My real problem with nis is the fact the freebsd maps are not compatible with linux clients, and I can't seem to get the Makefile right...