|
|
@ -21,10 +21,8 @@ pub fn new_user(username: &str, hasroot: bool, password: &str) {
|
|
|
|
exec_chroot(
|
|
|
|
exec_chroot(
|
|
|
|
"usermod",
|
|
|
|
"usermod",
|
|
|
|
vec![
|
|
|
|
vec![
|
|
|
|
String::from("-a"),
|
|
|
|
String::from("-aG"),
|
|
|
|
String::from("-G"),
|
|
|
|
|
|
|
|
String::from("wheel"),
|
|
|
|
String::from("wheel"),
|
|
|
|
String::from("nix-users"),
|
|
|
|
|
|
|
|
String::from(username),
|
|
|
|
String::from(username),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -54,4 +52,4 @@ pub fn root_pass(root_pass: &str) {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
"set root password",
|
|
|
|
"set root password",
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|