Function users::switch::set_effective_gid [] [src]

pub fn set_effective_gid(gid: gid_t) -> IOResult<()>

Sets the effective group for the running process to the one with the given group ID. Uses setegid internally.

Typically, trying to switch to any group other than the group already running the process requires root privileges.