Method System.setgid()
- Method
setgid
intsetgid(intgid)- Description
Sets the real group ID, effective group ID and saved group ID to
gid. Ifgidis-1the uid for "nobody" will be used.- Throws
Throws an error if no "nobody" user when
gidis-1.- Returns
Returns the current errno.
- Note
This function is not available on all platforms.
- See also
getuid(), setuid(), getgid(), seteuid(), geteuid(), setegid(), getegid()