This commit is contained in:
JMARyA 2024-12-28 05:14:29 +01:00
parent 17a137e47c
commit 4a70ffa906
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
6 changed files with 49 additions and 21 deletions

View file

@ -1,4 +1,4 @@
use crate::{config::UserConfig, run_command};
use crate::{config::UserConfig, print_status, run_command};
use super::str_vec;
@ -19,6 +19,7 @@ pub fn setup_users(conf: &[UserConfig]) {
);
if user.doas_root {
print_status(&format!("Allowing root doas for {}", user.name));
doas_conf.push_str(&format!("permit {} as root\n", user.name));
}
}