[go: up one dir, main page]

Function users::switch::set_both_gid

source ·
pub fn set_both_gid(rgid: gid_t, egid: gid_t) -> IOResult<()>
Expand description

Sets both the current group and the effective group for the running process to the ones with the given group IDs. Uses setregid internally.

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