1INITGROUPS(3)              Library Functions Manual              INITGROUPS(3)
2
3
4

NAME

6       initgroups - initialize group access list
7

SYNOPSIS

9       initgroups(name, basegid)
10       char *name;
11       int basegid;
12

DESCRIPTION

14       Initgroups  reads  through  the  group file and sets up, using the set‐
15       groups(2) call, the group access list for the user specified  in  name.
16       The  basegid  is  automatically included in the groups list.  Typically
17       this value is given as the group number from the password file.
18

FILES

20       /etc/group
21

SEE ALSO

23       setgroups(2)
24

DIAGNOSTICS

26       Initgroups returns -1 if it was not invoked by the super-user.
27

BUGS

29       Initgroups uses the routines based on  getgrent(3).   If  the  invoking
30       program  uses  any of these routines, the group structure will be over‐
31       written in the call to initgroups.
32
33
34
354.2 Berkeley Distribution        May 12, 1986                    INITGROUPS(3)
Impressum