From owner-freebsd-questions@FreeBSD.ORG Fri Jan 14 09:34:26 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85849106566B for ; Fri, 14 Jan 2011 09:34:26 +0000 (UTC) (envelope-from freebsdlists@bsdunix.ch) Received: from conversation.bsdunix.ch (ns1.bsdunix.ch [82.220.1.90]) by mx1.freebsd.org (Postfix) with ESMTP id 44F8C8FC0C for ; Fri, 14 Jan 2011 09:34:25 +0000 (UTC) Received: from conversation.bsdunix.ch (localhost [127.0.0.1]) by conversation.bsdunix.ch (Postfix) with ESMTP id 69AAA432C for ; Fri, 14 Jan 2011 09:19:13 +0000 (UTC) X-Virus-Scanned: by amavisd-new at mail.bsdunix.ch Received: from conversation.bsdunix.ch ([127.0.0.1]) by conversation.bsdunix.ch (conversation.bsdunix.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LjO3yTULQv3r for ; Fri, 14 Jan 2011 09:19:13 +0000 (UTC) Received: from ernie.mlan.solnet.ch (ernie.mlan.solnet.ch [212.101.1.20]) by conversation.bsdunix.ch (Postfix) with ESMTPA id 015FF4324 for ; Fri, 14 Jan 2011 09:19:13 +0000 (UTC) Message-ID: <4D301510.5010100@bsdunix.ch> Date: Fri, 14 Jan 2011 10:19:12 +0100 From: Thomas User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: NIS table and the local passwd are out of sync 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: Fri, 14 Jan 2011 09:34:26 -0000 Hello I hope someone can give me some hints on how to fix a NIS problem. My FreeBSD 7.2 (amd64) system works as NIS Server and a 8.1-STABLE (amd64) machine as a NIS client. It was configured as described at http://www.freebsd.org/doc/handbook/network-nis.html. Syncing between server and client works but there is a difference between NIS and the local administrative database (passwd). ypcat and ypmatch show more users than getent. Example: "ypmatch wwwfoo passwd" wwwfoo:*:46683:46683:WebAccount:/var/webs/foo.com:/bin/date "getent passwd | grep wwwfoo" returns nothing This is an issue since my apache doesn't work if all these users are not seen with getent. Any idea why all my users are in the nis table but are not seen by the system? Nscd is not running so it shouldn't be a cache issue. NIS client master.passwd: nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin +:*::::: nsswitch.conf: group: files nis group_compat: nis passwd: files nis passwd_compat: nis Regards, Thomas