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