From 38b7233f836f4756825526fcef92a9a45284b819 Mon Sep 17 00:00:00 2001 From: Patrick Hilhorst Date: Sun, 1 Jul 2018 13:23:55 +0200 Subject: Update sudo.nix Updated example for security.sudo.extraRules to match comment --- nixos/modules/security/sudo.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/security/sudo.nix b/nixos/modules/security/sudo.nix index 24283e1d6165..5256c86e1d42 100644 --- a/nixos/modules/security/sudo.nix +++ b/nixos/modules/security/sudo.nix @@ -75,7 +75,7 @@ in # Allow execution of "/home/root/secret.sh" by user `backup`, `database` # and the group with GID `1006` without a password. - { users = [ "backup" ]; groups = [ 1006 ]; + { users = [ "backup" "database" ]; groups = [ 1006 ]; commands = [ { command = "/home/root/secret.sh"; options = [ "SETENV" "NOPASSWD" ]; } ]; } # Allow all users of group `bar` to run two executables as user `foo` -- cgit 1.4.1