This commit is contained in:
parent
c689ee87d4
commit
633a0ef410
6 changed files with 65 additions and 15 deletions
|
@ -17,7 +17,7 @@ pub fn setup_users(conf: &[UserConfig]) {
|
|||
|
||||
change_passwd(&user.name, &user.password);
|
||||
|
||||
if user.doas_root {
|
||||
if user.doas_root.unwrap_or_default() {
|
||||
print_status(&format!("Allowing root doas for {}", user.name));
|
||||
doas_conf.push_str(&format!("permit {} as root\n", user.name));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue