From owner-freebsd-questions@FreeBSD.ORG Mon May 21 21:17:18 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AC16616A46B for ; Mon, 21 May 2007 21:17:18 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.5]) by mx1.freebsd.org (Postfix) with ESMTP id 66F0F13C46A for ; Mon, 21 May 2007 21:17:18 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 20033 invoked from network); 21 May 2007 21:17:17 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 21 May 2007 21:17:17 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 5776C28440; Mon, 21 May 2007 17:17:16 -0400 (EDT) To: WarrenHead References: <46520271.8080004@gmail.com> From: Lowell Gilbert Date: Mon, 21 May 2007 17:17:16 -0400 In-Reply-To: <46520271.8080004@gmail.com> (warrenhead@gmail.com's message of "Mon\, 21 May 2007 22\:34\:57 +0200") Message-ID: <44fy5p98rn.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: configuring nis X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2007 21:17:18 -0000 WarrenHead writes: > I have been having some trouble with getting NIS working on my freebsd > server. Mainly because I have never before used this. > > I now have it working, but there is an odd inconsistency which I don't > know how to remove/update. > > I changed the gid of a user with: 'pw usermod -n sam -g 1000', but > this change is not reflected in the yp maps. I did recreate the maps > again with 'ypinit -m', but I guess that was not the trick I needed to > update the maps. > > So, now when I run 'ypcat passwd', I see something like this: > sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash > > while I also see this: 'id sam' > uid=1000(sam) gid=1000(sam) groups=1000(sam), 100(users) > > The difference is thus the gid. > > I can find information about updating/pushing the maps onto slave > servers, but not about getting changes into the maps on the sole nis > server I have. This depends on where the sources for the maps are stored on the master. If NIS on the master is not getting its data directly from /etc/master.passwd, then I think you need to give the "-y" option to the pw(8) command to get it to change the maps. [Or you can just edit the files directly. That's what I do on my (very small) home network.]