From 0f746eb241643ad8439e8bc44f4a25977cb5cb30 Mon Sep 17 00:00:00 2001 From: axtloss Date: Mon, 25 Jul 2022 22:03:05 +0200 Subject: [PATCH] make usermod work --- src/functions/users.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/functions/users.rs b/src/functions/users.rs index 7dfb7f3..aa7231b 100755 --- a/src/functions/users.rs +++ b/src/functions/users.rs @@ -21,10 +21,8 @@ pub fn new_user(username: &str, hasroot: bool, password: &str) { exec_chroot( "usermod", vec![ - String::from("-a"), - String::from("-G"), + String::from("-aG"), String::from("wheel"), - String::from("nix-users"), String::from(username), ], ), @@ -54,4 +52,4 @@ pub fn root_pass(root_pass: &str) { ), "set root password", ); -} \ No newline at end of file +}