*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: setgroups | Section: 2 | Source: Digital UNIX | File: setgroups.2.gz
setgroups(2) System Calls Manual setgroups(2) NAME setgroups - Sets the group access list SYNOPSIS #include <unistd.h> #include <sys/types.h> int setgroups ( int gidsetsize, gid_t grouplist[] ); PARAMETERS Indicates the number of entries in the array pointed to by the grou- plist parameter. Must not be more than NGROUPS_MAX, as defined in the limits.h header file. Points to the array that contains the group ac- cess list of the current user process. Element grouplist[0] becomes the new effective group ID. DESCRIPTION The setgroups() function sets the group access list of the current user process according to the array pointed to by the grouplist parameter. This function fails unless the invoking process has superuser privi- lege. NOTES Trial use RETURN VALUES Upon successful completion, a value of 0 (zero) is returned. If the setgroups() function fails, a value of -1 is returned and errno is set to indicate the error. ERRORS If the setgroups() function fails, errno may be set to one of the fol- lowing values: The caller does not have the appropriate system privi- lege. The value of the gidsetsize parameter is greater than NGROUPS_MAX or an entry in the grouplist parameter is not a valid group ID. The grouplist parameter points outside of the allocated address space of the process. RELATED INFORMATION Functions: getgroups(2), initgroups(3) delim off setgroups(2)

Navigation Options