diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2020-06-02 10:50:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 10:50:31 +0100 |
commit | 53d0dc663895d11bbbea9a78ce8bca6899acdee8 (patch) | |
tree | 50a5b52c384e99dac9ed8b73d4e4727cc1edb61f | |
parent | 00df2371122aeb96b4ca80451b1ac7b9b7b8d847 (diff) | |
parent | 925b028f1779027d65ef75ecc87563c45805d0c3 (diff) |
Merge pull request #51270 from aneeshusa/enable-setuid-wrapper-for-chsh
nixos/shadow: create setuid wrapper for chsh
-rw-r--r-- | nixos/modules/programs/shadow.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/programs/shadow.nix b/nixos/modules/programs/shadow.nix index fc352795c017c..386ded9d98b61 100644 --- a/nixos/modules/programs/shadow.nix +++ b/nixos/modules/programs/shadow.nix @@ -114,8 +114,9 @@ in newgrp.source = "${pkgs.shadow.out}/bin/newgrp"; newuidmap.source = "${pkgs.shadow.out}/bin/newuidmap"; newgidmap.source = "${pkgs.shadow.out}/bin/newgidmap"; - } // (if config.users.mutableUsers then { + } // lib.optionalAttrs config.users.mutableUsers { + chsh.source = "${pkgs.shadow.out}/bin/chsh"; passwd.source = "${pkgs.shadow.out}/bin/passwd"; - } else {}); + }; }; } |