Query: setrgid
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
setrgid(3) Library Functions Manual setrgid(3)NAMEsetrgid, setegid - Set the process's group IDsLIBRARYStandard C Library (libc.a)SYNOPSIS#include <sys/types.h> int setrgid( gid_t rgid); int setegid ( gid_t egid);PARAMETERSSpecifies the value of the real group ID to be set. Specifies the value of the effective group ID to be set.DESCRIPTIONThe setegid() function sets the process's effective group ID to the value of the egid parameter if the egid parameter is equal to the cur- rent real, effective, or saved group ID. The setrgid() function sets the process's real group ID to the value of the rgid parameter. Only the superuser may change the real or effective group ID to a value other than the current real or saved group ID of the process.RETURN VALUESUpon successful completion, the setegid() and setrgid() functions return a value of 0 (zero). If either function fails, a value of -1 is returned and errno is set to indicate the error.ERRORSIf the setrgid() or setegid() function fails, errno is set to one of the following values: The rgid or egid parameter is not equal to either the real or saved group IDs of the process and the calling process does not have superuser privilege.RELATED INFORMATIONFunctions: getgroups(2), setgroups(2), setregid(2). Commands: groups(1). delim off setrgid(3)
Related Man Pages |
---|
setrgid(3) - osf1 |
setrgid(3) - mojave |
setrgid(3) - osx |
setruid(3) - osx |
setrgid(3) - freebsd |