diff options
author | Domen Kožar <domen@dev.si> | 2016-09-13 16:22:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-13 16:22:07 +0200 |
commit | 9911a2f490d58d219c9b86a0ff0d1b71a836405e (patch) | |
tree | 098f007e14a01ff71c25dfc90599dd0701d9057d | |
parent | fef171ee76b6555c3691a40ec5ef8ee4d597d24c (diff) | |
parent | de0737aed57529f82fcf5e3a0ac0bcccc3b88e51 (diff) | |
download | nixlib-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.nix | 2 |
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 |