diff --git a/src/sudo.rs b/src/sudo.rs index 40f560b..a86805e 100644 --- a/src/sudo.rs +++ b/src/sudo.rs @@ -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(())