From owner-freebsd-questions@FreeBSD.ORG Mon Oct 15 20:18:01 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 18D2C16A419 for ; Mon, 15 Oct 2007 20:18:01 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (dsl092-078-145.bos1.dsl.speakeasy.net [66.92.78.145]) by mx1.freebsd.org (Postfix) with ESMTP id BE29113C459 for ; Mon, 15 Oct 2007 20:18:00 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id E0D8A28430; Mon, 15 Oct 2007 16:17:59 -0400 (EDT) To: Lowell Gilbert References: <20071015054707.GA34948@parts-unknown.org> <44hcksl96y.fsf@be-well.ilk.org> <20071015185404.GA86225@parts-unknown.org> From: Lowell Gilbert Date: Mon, 15 Oct 2007 16:17:59 -0400 In-Reply-To: <20071015185404.GA86225@parts-unknown.org> (David Benfell's message of "Mon\, 15 Oct 2007 11\:54\:04 -0700") Message-ID: <44fy0cgmiw.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org 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 20:18:01 -0000 David Benfell writes: > On Mon, 15 Oct 2007 10:54:45 -0400, Lowell Gilbert wrote: >> adduser(8) doesn't know anything about NIS. I don't know any >> automated way of adding users to a NIS map, but my home network is >> small enough that I don't bother. >> > I was using pw, which claims to be able to update NIS via the -Y > option, but frankly, the behavior you describe seems to match its > behavior as well. That's different. According to its manual page, I would expect you to need the -y option to go with -Y. > My network is also a home network, but the complications I get into > are nothing short of amazing. Nah. It takes some time to set up, but it works very easily after that. >> What you want to do is move the users' entries from master.passwd into >> your NIS master file, and rebuild the maps. > > Do I also need to modify the copy of passwd or is master.passwd the only > one that matters? passwd gets generated automatically from master.passwd. For the main system files, see the manual for pwd_mkdb(8). For the NIS versions, I don't remember the details offhand, but the Makefile under /var/yp probably knows all the relevant magic.