Function nix::unistd::setresgid [−][src]
pub fn setresgid(rgid: Gid, egid: Gid, sgid: Gid) -> Result<()>
Sets the real, effective, and saved gid. (see setresuid(2))
rgid
: real user idegid
: effective user idsgid
: saved user id- returns: Ok or libc error code.
Err is returned if the user doesn't have permission to set this GID.