[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#699089: libc-bin: getent gshadow broken



Package: libc-bin
Version: 2.13-37
Severity: important

"getent gshadow" does not work.  strace shows that it doesn't
even attempt to open "/etc/gshadow".  This is unlike for other
files such as "/etc/shadow" or "/etc/passwd".  getent certainly
knows that "gshadow" is a valid database name; but it does not
even try to read the database.

Adding gshadow to /etc/nsswitch.conf made no difference.
gshadow:	compat

Is glibc NSS correctly set up to read gshadow data from
nsswitch.conf?


Given that this is a core system database, this could be considered
RC since it prevents the database being queried or dumped which can
be fundamental to using the system.


# nm -D /lib/x86_64-linux-gnu/libc.so.6| grep getsg 
0000003d930e09f0 T fgetsgent
0000003d930e1710 W fgetsgent_r
0000003d930e0620 T getsgent
0000003d930e0df0 T getsgent_r
0000003d930e06e0 T getsgnam
0000003d930e10d0 T getsgnam_r
0000003d930e0840 T sgetsgent
0000003d930e1650 W sgetsgent_r

# nm -D /usr/bin/getent| grep getsg
                 U getsgent
                 U getsgnam

It's certainly using the correct symbols.  But there's something
fundamentally wrong here AFAICS.


Regards,
Roger

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32.33-kvm-i386-20111128-dirty (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information


Reply to: