More fixes

This commit is contained in:
Parnell Springmeyer 2017-01-29 05:44:29 -06:00
parent cfe4351c33
commit 9f82c9903d
No known key found for this signature in database
GPG key ID: DCCF89258EAD874A

View file

@ -101,9 +101,15 @@ in
chpasswd = { rootOK = true; };
};
security.setuidPrograms = [
"su" "chfn" "newuidmap" "newgidmap"
] ++ lib.optionals config.users.mutableUsers
[ "passwd" "sg" "newgrp" ];
security.wrappers = {
su.source = "${pkgs.shadow.su}/bin/su";
chfn.source = "${pkgs.shadow.out}/bin/chfn";
newuidmap.source = "${pkgs.shadow.out}/bin/newuidmap";
newgidmap.source = "${pkgs.shadow.out}/bin/newgidmap";
} // (lib.mkIf config.users.mutableUsers {
passwd.source = "${pkgs.shadow.out}/bin/passwd";
sg.source = "${pkgs.shadow.out}/bin/sg";
newgrp.source = "${pkgs.shadow.out}/bin/newgrp";
});
};
}