about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2016-09-13 16:22:07 +0200
committerGitHub <noreply@github.com>2016-09-13 16:22:07 +0200
commit9911a2f490d58d219c9b86a0ff0d1b71a836405e (patch)
tree098f007e14a01ff71c25dfc90599dd0701d9057d
parentfef171ee76b6555c3691a40ec5ef8ee4d597d24c (diff)
parentde0737aed57529f82fcf5e3a0ac0bcccc3b88e51 (diff)
downloadnixlib-9911a2f490d58d219c9b86a0ff0d1b71a836405e.tar
nixlib-9911a2f490d58d219c9b86a0ff0d1b71a836405e.tar.gz
nixlib-9911a2f490d58d219c9b86a0ff0d1b71a836405e.tar.bz2
nixlib-9911a2f490d58d219c9b86a0ff0d1b71a836405e.tar.lz
nixlib-9911a2f490d58d219c9b86a0ff0d1b71a836405e.tar.xz
nixlib-9911a2f490d58d219c9b86a0ff0d1b71a836405e.tar.zst
nixlib-9911a2f490d58d219c9b86a0ff0d1b71a836405e.zip
Merge pull request #18560 from MatrixAI/root-sudo-group-switch
sudo: Allow root to use sudo to switch groups
-rw-r--r--nixos/modules/security/sudo.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/security/sudo.nix b/nixos/modules/security/sudo.nix
index bced2a6ed757..f5612e1b0c5d 100644
--- a/nixos/modules/security/sudo.nix
+++ b/nixos/modules/security/sudo.nix
@@ -74,7 +74,7 @@ in
         Defaults env_keep+=SSH_AUTH_SOCK
 
         # "root" is allowed to do anything.
-        root        ALL=(ALL) SETENV: ALL
+        root        ALL=(ALL:ALL) SETENV: ALL
 
         # Users in the "wheel" group can do anything.
         %wheel      ALL=(ALL:ALL) ${if cfg.wheelNeedsPassword then "" else "NOPASSWD: ALL, "}SETENV: ALL