diff options
author | Patrick Hilhorst <git@hilhorst.be> | 2018-07-01 13:23:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-01 13:23:55 +0200 |
commit | 38b7233f836f4756825526fcef92a9a45284b819 (patch) | |
tree | 53d1a5950755d196bf88ad5bc53d136ee533df13 /nixos/modules/security | |
parent | d1b9bf92237abdcfa449075552510b5c0b4b53d9 (diff) | |
download | nixlib-38b7233f836f4756825526fcef92a9a45284b819.tar nixlib-38b7233f836f4756825526fcef92a9a45284b819.tar.gz nixlib-38b7233f836f4756825526fcef92a9a45284b819.tar.bz2 nixlib-38b7233f836f4756825526fcef92a9a45284b819.tar.lz nixlib-38b7233f836f4756825526fcef92a9a45284b819.tar.xz nixlib-38b7233f836f4756825526fcef92a9a45284b819.tar.zst nixlib-38b7233f836f4756825526fcef92a9a45284b819.zip |
Update sudo.nix
Updated example for security.sudo.extraRules to match comment
Diffstat (limited to 'nixos/modules/security')
-rw-r--r-- | nixos/modules/security/sudo.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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` |