From owner-freebsd-questions@FreeBSD.ORG Mon Oct 15 18:54:05 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 E88E116A468 for ; Mon, 15 Oct 2007 18:54:05 +0000 (UTC) (envelope-from benfell@earth.parts-unknown.org) Received: from earth.parts-unknown.org (earth.parts-unknown.org [66.93.170.243]) by mx1.freebsd.org (Postfix) with SMTP id B214713C44B for ; Mon, 15 Oct 2007 18:54:05 +0000 (UTC) (envelope-from benfell@earth.parts-unknown.org) Received: (qmail 6506 invoked by uid 501); 15 Oct 2007 18:54:05 -0000 DomainKey-Status: no signature Date: Mon, 15 Oct 2007 11:54:04 -0700 From: David Benfell To: Lowell Gilbert Message-ID: <20071015185404.GA86225@parts-unknown.org> Mail-Followup-To: Lowell Gilbert , freebsd-questions@freebsd.org References: <20071015054707.GA34948@parts-unknown.org> <44hcksl96y.fsf@be-well.ilk.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline In-Reply-To: <44hcksl96y.fsf@be-well.ilk.org> X-gnupg-public-key: http://www.parts-unknown.org/gnupg/export-0DD1D1E3 X-stardate: [-29]8358.92 X-moon: The Moon is Waxing Crescent (18% of Full) User-Agent: Mutt/1.5.16 (2007-06-09) 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 18:54:06 -0000 --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 15 Oct 2007 10:54:45 -0400, Lowell Gilbert wrote: > David Benfell writes: >=20 > > 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? >=20 > 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. >=20 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. My network is also a home network, but the complications I get into are nothing short of amazing. > What you want to do is move the users' entries from master.passwd into > your NIS master file, and rebuild the maps. =20 Do I also need to modify the copy of passwd or is master.passwd the only one that matters? Thanks! --=20 David Benfell, LCP benfell@parts-unknown.org --- Resume available at http://www.parts-unknown.org/ NOTE: I sign all messages with GnuPG (0DD1D1E3). --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHE7dMUd+dMw3R0eMRAuIKAJ9jM8ze3QquBuLEXySfKlXUPav/DwCfazo2 HILqXrrPPRfJDopvE/+OKro= =NE38 -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--