1INITGROUPS(3) Library Functions Manual INITGROUPS(3)
2
3
4
6 initgroups - initialize group access list
7
9 initgroups(name, basegid)
10 char *name;
11 int basegid;
12
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
20 /etc/group
21
23 setgroups(2)
24
26 Initgroups returns -1 if it was not invoked by the super-user.
27
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)