git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/shadow: setuid wrappers for new{uid,gid}map

These utils are not related to user management, so they should be available even if immutable users are enabled.

commit51b165c7d20d53b4581622a934a9e0abd7e43800 authorBenno Fünfstück <benno.fuenfstueck@gmail.com> dateFri 19 Aug 2016, 14:47 (10 years ago) parent80dbdba
1 file changed+2−3
nixos/modules/programs/shadow.nix+2−3
nixos/modules/programs/shadow.nix+2−3
@@ -103,10 +103,9 @@ in
103103 };
104104
105105 security.setuidPrograms = [ "su" "chfn" ]
106+ ++ [ "newuidmap" "newgidmap" ] # new in shadow 4.2.x
106107 ++ lib.optionals config.users.mutableUsers
107− [ "passwd" "sg" "newgrp"
108− "newuidmap" "newgidmap" # new in shadow 4.2.x
109− ];
108+ [ "passwd" "sg" "newgrp" ];
110109
111110 };
112111