lol

Merge pull request #7017 from obadz/sg+sudo-g

Ability to switch groups with sg and sudo -g

+2 -2
+1 -1
nixos/modules/programs/shadow.nix
··· 100 100 chgpasswd = { rootOK = true; }; 101 101 }; 102 102 103 - security.setuidPrograms = [ "passwd" "chfn" "su" "newgrp" 103 + security.setuidPrograms = [ "passwd" "chfn" "su" "sg" "newgrp" 104 104 "newuidmap" "newgidmap" # new in shadow 4.2.x 105 105 ]; 106 106
+1 -1
nixos/modules/security/sudo.nix
··· 77 77 root ALL=(ALL) SETENV: ALL 78 78 79 79 # Users in the "wheel" group can do anything. 80 - %wheel ALL=(ALL) ${if cfg.wheelNeedsPassword then "" else "NOPASSWD: ALL, "}SETENV: ALL 80 + %wheel ALL=(ALL:ALL) ${if cfg.wheelNeedsPassword then "" else "NOPASSWD: ALL, "}SETENV: ALL 81 81 ${cfg.extraConfig} 82 82 ''; 83 83