initgroups()

Ulrich Drepper drepper@redhat.com
Fri Feb 11 13:35:00 GMT 2000


Arkadiusz Miskiewicz <misiek@pld.org.pl> writes:

> Small problem with initgroups():
> 
> misiek@dark misiek$ rpm -q glibc gcc
> glibc-2.1.2-13
> gcc-2.95.2-1
> misiek@dark misiek$ LC_ALL=C id
> uid=1000(misiek) gid=1000(users) groups=1000(users)
> misiek@dark misiek$ gcc test.c -Wall -o test && LC_ALL=C ./test
> initgroups("misiek", -1)
> error Invalid argument
> misiek@dark misiek$

Which services are you using?  I.e., show me the group related entries
in /etc/nsswitch.conf.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Libc-alpha mailing list