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 NGROUPS, 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) and initgroups(3c). Printed 4/6/89 1
%%index%% na:360,85; sy:445,828; de:1273,550; di:1823,487; rv:2310,280; se:2590,179; %%index%%000000000108