INITGROUPS(3C) COMMAND REFERENCE INITGROUPS(3C) NAME initgroups - initialize group access list SYNOPSIS initgroups(name, basegid) char *name; int basegid; DESCRIPTION Initgroups reads through the group file and sets up, using the setgroups(2) call, the group access list for the user specified in name. The basegid is automatically included in the groups list. Typically this value is given as the group number from the password file. FILES /etc/group DIAGNOSTICS Initgroups returns -1 if it was not invoked by the superuser. CAVEATS Initgroups uses the routines based on getgrent(3c). If the invoking program uses any of these routines, the group structure will be overwritten in the call to initgroups. No one seems to keep /etc/group up to date. SEE ALSO setgroups(2). Printed 3/13/89 1
%%index%% na:408,93; sy:501,606; de:1107,560; fi:1667,89; di:1756,295; ca:2051,551; se:2602,139; %%index%%000000000120