From owner-freebsd-questions@FreeBSD.ORG Mon May 21 21:11:33 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 4D68E16A421 for ; Mon, 21 May 2007 21:11:33 +0000 (UTC) (envelope-from warrenhead@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id A056B13C484 for ; Mon, 21 May 2007 21:11:32 +0000 (UTC) (envelope-from warrenhead@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so45936ugh for ; Mon, 21 May 2007 14:11:29 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=dPgxdhOI80p2Ag3mVGEfY7Mw9m2wZkoLWodUGaa1UH+W5mq7FIkwFvENl96F7jYJmuKLNlmz4fL6Ei0Rcd9nAobCwSy5bS9Eb0gtXBATIYl2RnEeunjHnAJXQC0+19ChCdRwEE+PJp1k1Pv8BAU030ti1+PqtMGdAc+caCxDYIA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=bjscI64dhcnQZfWzzdWTo1wlih7P8VbYTCf9/kHZviDYwIKTl4gsDq4ZHomg6fjQ7jAkbDebDyzRwh113MeuGocA/IHSMGMNRUAGpGLki0oJOIBfkX2PQzw/j9u3xFMay2vBq7iM/n7g387HgMGusB4rZPgT9JKc1jnGp65vDCE= Received: by 10.82.123.16 with SMTP id v16mr9509149buc.1179781889382; Mon, 21 May 2007 14:11:29 -0700 (PDT) Received: from ?192.168.179.11? ( [81.206.93.205]) by mx.google.com with ESMTP id y37sm1024167iky.2007.05.21.14.11.25; Mon, 21 May 2007 14:11:28 -0700 (PDT) Message-ID: <46520AFA.1080601@gmail.com> Date: Mon, 21 May 2007 23:11:22 +0200 From: WarrenHead User-Agent: Thunderbird 1.5.0.10 (X11/20070403) MIME-Version: 1.0 To: Reid Linnemann References: <46520271.8080004@gmail.com> <465204AE.1070308@cs.okstate.edu> In-Reply-To: <465204AE.1070308@cs.okstate.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: configuring 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, 21 May 2007 21:11:33 -0000 Reid Linnemann schreef: > Written by WarrenHead on 05/21/07 15:34>> >> Hi, >> >> 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. >> >> Cheers, Warren >> > > pw by default works on the local /etc/passwd, not the yp passwd > database. I suggest reading about the -y option in the manpage: > > -y path > > This sets the pathname of the database used by NIS if you are not > sharing the information from /etc/master.passwd directly with NIS. You > should only set this option for NIS servers. > > > Ah ofcourse. I wasn't using the default /etc/master.passwd because that one contains way more users than I want to share among machines. Thanks for the heads up! Cheers, Warren