This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
initgroups in nsswitch.conf
- From: Mark R Bannister <mark at proseconsulting dot co dot uk>
- To: <libc-help at sourceware dot org>
- Date: Mon, 31 Oct 2011 11:15:35 +0000
- Subject: initgroups in nsswitch.conf
- Reply-to: mark at proseconsulting dot co dot uk
Hi,
I submitted a large patch for the nsswitch.conf(5) man page recently to the Linux
man-pages project. See:
http://article.gmane.org/gmane.linux.man/2366/match=nsswitch+conf
However, I omitted to mention initgroups, so I'd like to correct this omission.
Looking at the code in the latest glibc, it looks like the initgroups entry in
nsswitch.conf will be used by getgrouplist(). What I don't understand is why
it's needed? Why would someone choose to use an initgroups entry instead of just
groups? The files back-end for initgroups opens /etc/group, so what is it
actually doing for me?
Thanks,
Mark Bannister.