From 2147f676e8cbde637a7844fe6274a3e4c0c59f3d Mon Sep 17 00:00:00 2001 From: amy Date: Sun, 23 Jan 2022 19:26:24 +0100 Subject: [PATCH] edit sudoers and remove a stray println --- src/functions/users.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/functions/users.rs b/src/functions/users.rs index 921f4f5..2730262 100755 --- a/src/functions/users.rs +++ b/src/functions/users.rs @@ -27,6 +27,10 @@ pub fn new_user(username: &str, hasroot: bool, password: &str) { ), format!("Add user {} to wheel group", username).as_str(), ); + files_eval( + files::append_file("/mnt/etc/sudoers", "%wheel ALL=(ALL) ALL"), + "Add wheel group to sudoers", + ); } exec_eval( exec_chroot( @@ -44,7 +48,6 @@ pub fn new_user(username: &str, hasroot: bool, password: &str) { } pub fn root_pass(root_pass: &str) { - println!("Setting root password to '{}'", root_pass); exec_eval( exec_chroot( "bash",