More fixes
This commit is contained in:
parent
cfe4351c33
commit
9f82c9903d
1 changed files with 10 additions and 4 deletions
|
@ -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";
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue