[go: up one dir, main page]

Function users::switch::set_current_gid

source ·
pub fn set_current_gid(gid: gid_t) -> IOResult<()>
Expand description

Sets the current group for the running process to the one with the given group ID. Uses setgid internally.

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