This is the mail archive of the
mailing list for the glibc project.
nss_compat in glibc-2.2.3 (Was: static binaries & netgroups)
- To: "H . J . Lu" <hjl at valinux dot com>
- Subject: nss_compat in glibc-2.2.3 (Was: static binaries & netgroups)
- From: Torsten Duwe <duwe at caldera dot de>
- Date: Wed, 30 May 2001 13:07:52 +0200 (CEST)
- Cc: Torsten dot Duwe at caldera dot de, aj at suse dot de, libc-alpha at sources dot redhat dot com
- References: <200102151556.QAA21140@ns.caldera.de><20010215094356.A3353@valinux.com><firstname.lastname@example.org><20010216091332.A20320@valinux.com>
- Reply-to: Torsten dot Duwe at caldera dot de
To follow up on this older thread...
HJL> On Fri, Feb 16, 2001 at 06:09:14PM +0100, Torsten Duwe wrote:
>> >> static binary doing getpwuid() or such + "passwd: compat" in >>
>> /etc/nsswitch.conf + "-@SOMEGROUP::::::" in /etc/passwd = crash.
>> >> Reducing "compat" to "files nis" eliminates the problem, as does
>> the >> removal of netgroup entries from passwd. Linking dynamically
>> also >> helps.
HJL> Please provide a complete testcase. I will look into it when I find
HJL> I don't have netgroups. You have to tell me how to reproduce it,
HJL> assuming I don't use NIS and know every little about netgroups.
OK, glibc-2.2.3 now breaks it completely; you don't even need netgroups any
more :-( The failure happens even with dynamically linked programs.
If you use "passwd: files nis" in /etc/nsswitch.conf everything works.
A backward-compatible equivalent should be to change /etc/nsswitch.conf to
"passwd: compat" and to append "+::::::" to /etc/passwd . Now even root
cannot log in any more e.g. the getpw* functions return NULL.
I can provide a complete test case if this isn't enough, provided you already
have NIS (passwd.by* maps at least) running.
Nobody uses nss_compat, it seems ?