3
0
Fork 0
forked from mirrors/nixpkgs

Update sudo.nix

Updated example for security.sudo.extraRules to match comment
This commit is contained in:
Patrick Hilhorst 2018-07-01 13:23:55 +02:00 committed by GitHub
parent d1b9bf9223
commit 38b7233f83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`