duosec: use root uid as sshd uid has been retired (#33597)
* fix: use root uid as sshd uid has been retired fixes https://github.com/NixOS/nixpkgs/issues/10088 related PR (abandoned) at https://github.com/NixOS/nixpkgs/pull/15391 * must use "sshd" user otherwise duosec does not work in multi user mode see https://github.com/duosecurity/duo_unix/issues/89#issuecomment-272062632
This commit is contained in:
parent
f60d7e2add
commit
a88ec5e8a5
|
@ -25,14 +25,14 @@ let
|
|||
loginCfgFile = optional cfg.ssh.enable
|
||||
{ source = pkgs.writeText "login_duo.conf" configFile;
|
||||
mode = "0600";
|
||||
uid = config.ids.uids.sshd;
|
||||
user = "sshd";
|
||||
target = "duo/login_duo.conf";
|
||||
};
|
||||
|
||||
pamCfgFile = optional cfg.pam.enable
|
||||
{ source = pkgs.writeText "pam_duo.conf" configFile;
|
||||
mode = "0600";
|
||||
uid = config.ids.uids.sshd;
|
||||
user = "sshd";
|
||||
target = "duo/pam_duo.conf";
|
||||
};
|
||||
in
|
||||
|
|
Loading…
Reference in a new issue