From owner-freebsd-questions@FreeBSD.ORG Tue Aug 9 18:38:02 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C64516A41F for ; Tue, 9 Aug 2005 18:38:02 +0000 (GMT) (envelope-from lfsjeremy@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC88C43D46 for ; Tue, 9 Aug 2005 18:38:01 +0000 (GMT) (envelope-from lfsjeremy@gmail.com) Received: by wproxy.gmail.com with SMTP id i27so878420wra for ; Tue, 09 Aug 2005 11:38:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iUA1/pnrA/ZM9AkFzAFXd+jGn7B5jR630tn1o0sL6tdnFtKcQP1SlZB3LzfngytSGXITocMEXV2gVOGfMt2n7RjKoFPXnQ8z7FWFlUMSDAKPwPhW1I1Bz34ipkKYUH1JXNW8UVquygJHVMX2ZRdJ0lqQB+FDVpzw1fTs918iqwk= Received: by 10.54.13.77 with SMTP id 77mr5672183wrm; Tue, 09 Aug 2005 11:38:01 -0700 (PDT) Received: by 10.54.143.11 with HTTP; Tue, 9 Aug 2005 11:38:01 -0700 (PDT) Message-ID: <3aaec884050809113868af985@mail.gmail.com> Date: Tue, 9 Aug 2005 11:38:01 -0700 From: Jeremy Utley To: Dan Nelson In-Reply-To: <20050809010301.GA37912@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3aaec88405080816514a40f327@mail.gmail.com> <20050809010301.GA37912@dan.emsphone.com> Cc: freebsd-questions@freebsd.org Subject: Re: NIS problems on FreeBSD 5.4 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: Tue, 09 Aug 2005 18:38:02 -0000 On 8/8/05, Dan Nelson wrote: > In the last episode (Aug 08), Jeremy Utley said: > > I'm trying to use FreeBSD 5.4 as an NIS client, and am encountering > > problems. I've followed the instructions given in the FreeBSD docs > > (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-nis.= html) > > successfully, but the system does not recognize my NIS users. > > > > Running ypcat passwd shows expected output: > > > > freebsd5# ypcat passwd > > Administrator:omitted:0:0::/root:/bin/bash > > jeremy:omitted:500:100::/home/jeremy:/bin/bash > > test:omitted:501:100::/home/test:/bin/bash >=20 > You might want to change these passwords now that everyone knows the > hash :) No worries - this is a reserved network with no direct connectivity to the net at large, otherwise I would have done so. I suppose I should also mention that the NIS master server is a W2K3 AD controller with Services for Unix, but that doesn't seem to be involved, since a linux system on the same NIS domain appears to work properly. >=20 > > However, when I try to login as any of these 3 users, it rejects the > > login - even using the "id" command fails: > > > > freebsd5# id jeremy > > id: jeremy: no such user >=20 > You need either a plus line in your master.passwd file (best way to add > it is to use the vipw command): >=20 > +::::::::: This part has already been done - it was part of the docs I followed from the FreeBSD site. >=20 > Or you need this in /etc/nsswitch.conf: >=20 > passwd: files nis Haven't done this...the passwd section of my current nsswitch.conf is: passwd: compat passwd_compat: nis Adding this to nsswitch.conf seems to have resolved the problem - perhaps doing so should be added to the docs. Jeremy