Query: setgroups
OS: osf1
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
setgroups(2) System Calls Manual setgroups(2)NAMEsetgroups - Sets the group access listSYNOPSIS#include <unistd.h> #include <sys/types.h> int setgroups ( int gidsetsize, gid_t grouplist[] );PARAMETERSIndicates the number of entries in the array pointed to by the grouplist parameter. Must not be more than NGROUPS_MAX, as defined in the limits.h header file. Points to the array that contains the group access list of the current user process. Element grouplist[0] becomes the new effective group ID.DESCRIPTIONThe setgroups() function sets the group access list of the current user process according to the array pointed to by the grouplist parame- ter. This function fails unless the invoking process has superuser privilege.NOTESTrial useRETURN VALUESUpon 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.ERRORSIf the setgroups() function fails, errno may be set to one of the following 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 INFORMATIONFunctions: getgroups(2), initgroups(3) delim off setgroups(2)
Related Man Pages |
---|
getgroups(2) - redhat |
setgroups(2) - redhat |
getgroups(3) - linux |
getgroups(2) - ultrix |
initgroups(3) - osf1 |
Similar Topics in the Unix Linux Community |
---|
Day 5 of the SCO v. Novell Trial and Some Help for Journalists Covering the Trial - Updated |