From owner-freebsd-security@FreeBSD.ORG Thu Oct 13 13:06:13 2011 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1213D106568B; Thu, 13 Oct 2011 13:06:13 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id C886C8FC19; Thu, 13 Oct 2011 13:06:12 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id DE67D1FFC39; Thu, 13 Oct 2011 13:06:11 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id C2E04B93C; Thu, 13 Oct 2011 15:06:11 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Chao Shin" References: <679126918.20110922121706@serebryakov.spb.ru> Date: Thu, 13 Oct 2011 15:06:11 +0200 In-Reply-To: (Chao Shin's message of "Wed, 12 Oct 2011 12:29:05 +0800") Message-ID: <86vcrt9h30.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-security@freebsd.org, Lev Serebryakov Subject: Re: pam_ldap and nss_ldap : checken and egg problem with "wheel" group and "su" utility X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2011 13:06:13 -0000 "Chao Shin" writes: > "Lev Serebryakov" writes: > > But when "wheel" is in /etc/group with only "root" member (as all > > other members are in LDAP), system never takes "wheel" members from > > LDAP (because /etc/group has priority) and "su" doesn't work! > I don't have system to test this now, but you can try below config in your > nsswitch.conf > > group: files [success=3Dreturn notfound=3Dcontinue] ldap > passwd: files [success=3Dreturn notfound=3Dcontinue] ldap That won't make any difference, because "files" *will* succeed, since there is a wheel entry in /etc/group. (actually, I believe [success=3Dreturn notfound=3Dcontinue] is the default behavior) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no