-
bjorn3 authored
This ensures that the gid's for the auto-generated user groups stay in sync with the gid in /etc/passwd. It also makes it easier to evolve the format of /etc/group in the future.
bjorn3 authoredThis ensures that the gid's for the auto-generated user groups stay in sync with the gid in /etc/passwd. It also makes it easier to evolve the format of /etc/group in the future.
user.rs 465 B
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct UserConfig {
pub password: Option<String>,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub name: Option<String>,
pub home: Option<String>,
pub shell: Option<String>,
}
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct GroupConfig {
pub gid: Option<u32>,
// FIXME move this to the UserConfig struct as extra_groups
pub members: Vec<String>,
}