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 | Merge pull request #89177 from foxit64/gopacked (diff) | |
| parent | nixos/shadow: create setuid wrapper for chsh (diff) | |
| download | nixpkgs-53d0dc663895d11bbbea9a78ce8bca6899acdee8.tar.gz | |
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 fc352795c017..386ded9d98b6 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 {}); + }; }; } |
