Skip to content

Commit

Permalink
fix sudo config
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Jul 26, 2024
1 parent 5bc9348 commit 1b35bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sudo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub fn create_sudoers_entry(ctx: &Context) -> Result<()> {
sudoers_entry_path.display()
))?;
} else {
let config = format!("{} ALL=ALL NOPASSWD: ALL\n", ctx.username);
let config = format!("{} ALL=(ALL) NOPASSWD: ALL\n", ctx.username);
fs::write(&sudoers_entry_path, config)?;
}
Ok(())
Expand Down

0 comments on commit 1b35bb3

Please sign in to comment.