From owner-freebsd-questions@FreeBSD.ORG Tue Aug 9 20:27:44 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 06FA816A453 for ; Tue, 9 Aug 2005 20:27:42 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id E540E43DDF for ; Tue, 9 Aug 2005 19:02:53 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j79J2rJQ079092; Tue, 9 Aug 2005 14:02:53 -0500 (CDT) (envelope-from dan) Date: Tue, 9 Aug 2005 14:02:53 -0500 From: Dan Nelson To: Jeremy Utley Message-ID: <20050809190252.GA71687@dan.emsphone.com> References: <3aaec88405080816514a40f327@mail.gmail.com> <20050809010301.GA37912@dan.emsphone.com> <3aaec884050809113868af985@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3aaec884050809113868af985@mail.gmail.com> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i 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 20:27:45 -0000 In the last episode (Aug 09), Jeremy Utley said: > 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. > > > > You need either a plus line in your master.passwd file (best way to add > > it is to use the vipw command): > > > > +::::::::: > > This part has already been done - it was part of the docs I followed > from the FreeBSD site. > > > Or you need this in /etc/nsswitch.conf: > > > > 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. Only one is necessary. You can remove the plus line from master.passwd if you're using the "passwd: files nis" line. With "passwd: compat", the NIS tables are consulted whenever there's a + or - line in master.passwd and netgroups are used. With "passwd: files nis", nis is checked if the user isn't in the local passwd file, and you can't use netgroups. Also remember to change the "group:" line in nsswitch.conf to match, and remove the + line from /etc/groups. -- Dan Nelson dnelson@allantgroup.com