Skip to main content

create_group

Function create_group 

Source
pub fn create_group(group: &str, system: bool) -> ActionSpec
Expand description

Create a group (sudo groupadd [--system] <group>).

High risk: groups gate access to privileged resources, so creating one is a privilege-relevant operation on par with the rest of the user/group family. system selects a system group (GID from the system range) via --system.