From 6dad1352ef98c10c7a9212d865b0e864b3cb793c Mon Sep 17 00:00:00 2001 From: amy Date: Mon, 24 Jan 2022 21:13:20 +0100 Subject: [PATCH] make it add pwfeedback to sudoers --- src/functions/users.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/functions/users.rs b/src/functions/users.rs index 2730262..8499556 100755 --- a/src/functions/users.rs +++ b/src/functions/users.rs @@ -31,6 +31,10 @@ pub fn new_user(username: &str, hasroot: bool, password: &str) { files::append_file("/mnt/etc/sudoers", "%wheel ALL=(ALL) ALL"), "Add wheel group to sudoers", ); + files_eval( + files::append_file("/mnt/etc/sudoers", "Defaults pwfeedback"), + "Add pwfeedback to sudoers", + ); } exec_eval( exec_chroot(