nixos: condition shadow setuid-wrappers on mutableUsers
Having junk setuid wrappers in PATH is annoying.
This commit is contained in:
parent
2d8cfe76a9
commit
75ab7bf960
@ -100,8 +100,10 @@ in
|
|||||||
chgpasswd = { rootOK = true; };
|
chgpasswd = { rootOK = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
security.setuidPrograms = [ "passwd" "chfn" "su" "sg" "newgrp"
|
security.setuidPrograms = [ "su" "chfn" ]
|
||||||
"newuidmap" "newgidmap" # new in shadow 4.2.x
|
++ lib.optionals config.users.mutableUsers
|
||||||
|
[ "passwd" "sg" "newgrp"
|
||||||
|
"newuidmap" "newgidmap" # new in shadow 4.2.x
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user