From bf2b544e0eda9d817a7e9f28ece16a3680d0da6c Mon Sep 17 00:00:00 2001 From: jan Michal Date: Wed, 26 Jan 2022 03:07:14 +0000 Subject: [PATCH] Update users.rs --- src/functions/users.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions/users.rs b/src/functions/users.rs index 8499556..e3c2dce 100755 --- a/src/functions/users.rs +++ b/src/functions/users.rs @@ -28,11 +28,11 @@ 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"), + files::append_file("/mnt/etc/sudoers", "\n%wheel ALL=(ALL) ALL\n"), "Add wheel group to sudoers", ); files_eval( - files::append_file("/mnt/etc/sudoers", "Defaults pwfeedback"), + files::append_file("/mnt/etc/sudoers", "\nDefaults pwfeedback\n"), "Add pwfeedback to sudoers", ); }