*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> initgroups (3)              
Title
Content
Arch
Section
 

INITGROUPS(3)

Contents


NAME    [Toc]    [Back]

       initgroups - initialize the supplementary group access list

SYNOPSIS    [Toc]    [Back]

       #include <grp.h>
       #include <sys/types.h>

       int initgroups(const char *user, gid_t group);

DESCRIPTION    [Toc]    [Back]

       The  initgroups() function initializes the group access list by reading
       the group database /etc/group and using all groups of which user  is  a
       member.	The additional group group is also added to the list.

RETURN VALUE    [Toc]    [Back]

       The  initgroups()  function  returns  0	on  success, or -1 if an error
       occurs.

ERRORS    [Toc]    [Back]

       EPERM  The calling process does not have sufficient privileges.

       ENOMEM Insufficient memory to allocate group information structure.

FILES    [Toc]    [Back]

       /etc/group	   group database file

CONFORMING TO    [Toc]    [Back]

       SVID 3, BSD 4.3

SEE ALSO    [Toc]    [Back]

      
      
       getgroups(2), setgroups(2)



GNU				  1993-04-05			 INITGROUPS(3)
[ Back ]
 Similar pages
Name OS Title
getgroups IRIX get supplementary group access list IDs
initgroups NetBSD initialize supplementary group IDs
initgroups OpenBSD initialize supplementary group IDs
initgroups IRIX initialize group access list
initgroups FreeBSD initialize group access list
getgroups Linux get/set list of supplementary group IDs
pxfgetgroups IRIX Gets supplementary group IDs
getgroups Tru64 Get the supplementary group IDs of the current process
setgroups FreeBSD set group access list
getgroups HP-UX get group access list
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service