From owner-freebsd-stable@freebsd.org Mon Nov 23 14:42:53 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2E9BCA331D7 for ; Mon, 23 Nov 2015 14:42:53 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C4163110B for ; Mon, 23 Nov 2015 14:42:52 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from hugo10.ka.punkt.de (hugo10.ka.punkt.de [217.29.44.10]) by gate2.intern.punkt.de with ESMTP id tANEgiR9056888 for ; Mon, 23 Nov 2015 15:42:44 +0100 (CET) Received: from [217.29.44.250] ([217.29.44.250]) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id tANEgivp098877 for ; Mon, 23 Nov 2015 15:42:44 +0100 (CET) (envelope-from hausen@punkt.de) From: "Patrick M. Hausen" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: NSS changes in releng/10.2? Message-Id: <07B8E386-4692-4BE0-9516-E1CA67B2934D@punkt.de> Date: Mon, 23 Nov 2015 15:42:47 +0100 To: freebsd-stable Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2015 14:42:53 -0000 Hi, all, I just upgraded an older system from 8.4 to 10.2 in a single go. No unexpected problems, until I tried to use "su": $ su - su: Sorry Well, I *am* a member of the wheel group: $ id uid=3D10093(ry93) gid=3D10001(intern) = groups=3D10001(intern),0(wheel),10002(entwickler) Hmmm ... we pull all this information from LDAP. My nsswitch.conf has = always been: group: files cache ldap passwd: files cache ldap Without the "compat" entries.=20 Let's check the groups: $ pw group show -a wheel:*:0: wheel:*:0:ry22,ry96,ry90,ry93=20 Before the update the members were merged. The first line is coming from = /etc/group, the second from LDAP. I do have to remove the "root" member in = /etc/group from wheel on all systems for LDAP information to be merged in, even on the older = systems. But for some reason that seems not to be sufficient, anymore.=20 If I put myself (ry93) in the file, everything works as expected. Another way I tried was this for nsswitch.conf: group: compat group_compat: cache ldap and then the traditional "+:*:0:" entry in /etc/group. The outcome of = "id" and "su -" is precisely the same as above. I am shown to be a member of group wheel, = yet su won't let me. Any ideas? Thanks, Patrick --=20 punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe Tel. 0721 9109 0 * Fax 0721 9109 100 info@punkt.de http://www.punkt.de Gf: J=C3=BCrgen Egeling AG Mannheim 108285