Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
users: fix sudo sed
Browse files Browse the repository at this point in the history
  • Loading branch information
fries1234 authored and axtloss committed Sep 11, 2022
1 parent 392f682 commit f74fd5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ pub fn new_user(username: &str, hasroot: bool, password: &str, do_hash_pass: boo
files_eval(
files::sed_file(
"/mnt/etc/sudoers",
"# %wheel ALL=(ALL) ALL",
"%wheel ALL=(ALL) ALL",
"# %wheel ALL=(ALL:ALL) ALL",
"%wheel ALL=(ALL:ALL) ALL",
),
"Add wheel group to sudoers",
);
Expand Down

0 comments on commit f74fd5e

Please sign in to comment.