From owner-freebsd-questions@FreeBSD.ORG Mon May 21 20:43:16 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 88A2D16A469 for ; Mon, 21 May 2007 20:43:16 +0000 (UTC) (envelope-from warrenhead@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id 8DF9013C48C for ; Mon, 21 May 2007 20:43:13 +0000 (UTC) (envelope-from warrenhead@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so39674ugh for ; Mon, 21 May 2007 13:43:12 -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:subject:references:in-reply-to:content-type:content-transfer-encoding; b=IXn5Os1sTnC68P101E6Sts7Ix5zBTomHMvVg5Whs9si3JngylZS6zS71MJ5ltCXnjx1qmeycNGE4P/LUqMpnWsJUYz0ttdOR8Pdu5eV0ZgI4hXKgeKE8ejHYYN24PfjmOtUnQ3w/gNgGZsv9QMC1L5kXPbbBREz0qqjpxFc4Hqw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=XMSHhPEZhO/akhyb9blnR8aUh7azgYW/SiQ5QhFMLn76QTkqoR7DJl5Q9pa3qjyecNIcxr/AZEtqa2K0+LKpmifQIQOae8bqTc2QAcsn7j6Ia+F8Sv22broLQcfK/LElcOcgwg41Tft4vQI6Fk0IauGS5FBrEYRP0PNX0YZ0908= Received: by 10.66.252.18 with SMTP id z18mr61772ugh.1179780192011; Mon, 21 May 2007 13:43:12 -0700 (PDT) Received: from ?192.168.179.11? ( [81.206.93.205]) by mx.google.com with ESMTP id b36sm922051ika.2007.05.21.13.43.07; Mon, 21 May 2007 13:43:07 -0700 (PDT) Message-ID: <46520458.9000902@gmail.com> Date: Mon, 21 May 2007 22:43:04 +0200 From: WarrenHead User-Agent: Thunderbird 1.5.0.10 (X11/20070403) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <46520271.8080004@gmail.com> In-Reply-To: <46520271.8080004@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 20:43:16 -0000 WarrenHead schreef: > 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 > > > Oh and just running 'make -C /var/yp' doesn't solve it either. This command is suggested here: http://www.linux-nis.org/nis-howto/HOWTO/maps.html Cheers, Warren