SETGROUPS(2) COMMAND REFERENCE SETGROUPS(2)
NAME
setgroups - set group access list
SYNOPSIS
#include <sys/param.h>
setgroups(ngroups, gidset)
int ngroups, *gidset;
DESCRIPTION
Setgroups sets the group access list of the current user
process according to the array gidset. The parameter
ngroups indicates the number of entries in the array and
must be no more than NGRPS, as defined in <sys/param.h>.
Only the super-user may set new groups.
DIAGNOSTICS
The setgroups call will fail if:
[EPERM]
The caller is not the super-user.
[EFAULT]
The address specified for gidset is outside the process
address space.
[EINVAL]
Ngroups is too large a value.
RETURN VALUE
Upon successful completion, a value of 0 is returned.
Otherwise, a value of -1 is returned and errno is set to
indicate the error.
SEE ALSO
getgroups(2), initgroups(3c).
Printed 10/17/86 1
%%index%%
na:72,69;
sy:141,536;
de:677,468;
di:1145,412;
rv:1557,236;
se:1793,145;
%%index%%000000000106