Merge pull request #7017 from obadz/sg+sudo-g
Ability to switch groups with sg and sudo -g
This commit is contained in:
commit
4fa554e32b
|
@ -100,7 +100,7 @@ in
|
||||||
chgpasswd = { rootOK = true; };
|
chgpasswd = { rootOK = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
security.setuidPrograms = [ "passwd" "chfn" "su" "newgrp"
|
security.setuidPrograms = [ "passwd" "chfn" "su" "sg" "newgrp"
|
||||||
"newuidmap" "newgidmap" # new in shadow 4.2.x
|
"newuidmap" "newgidmap" # new in shadow 4.2.x
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ in
|
||||||
root ALL=(ALL) SETENV: ALL
|
root ALL=(ALL) SETENV: ALL
|
||||||
|
|
||||||
# Users in the "wheel" group can do anything.
|
# Users in the "wheel" group can do anything.
|
||||||
%wheel ALL=(ALL) ${if cfg.wheelNeedsPassword then "" else "NOPASSWD: ALL, "}SETENV: ALL
|
%wheel ALL=(ALL:ALL) ${if cfg.wheelNeedsPassword then "" else "NOPASSWD: ALL, "}SETENV: ALL
|
||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue