Let PAM to provision users on their first login
Theo de Raadt
deraadt at openbsd.org
Fri Nov 20 07:07:46 AEDT 2026
Damien Miller <djm at mindrot.org> wrote:
> I don't love this because it fairly significantly complicates
> some of the most critical code in OpenSSH.
>
> If this were just reversing the order in which we call getpwnam() and
> pam_start() then it wouldn't be so bad, but requiring sshd proceed with
> an invalid account right up to the point of authentication success is
> pretty scary.
>
> The "monitor: Receive PAM account requests only after authentication"
> bit is good though and mirrors a hardening that I've wanted to do for
> a while.
I agree. The proposal is no longer compatible with Unix / POSIX
properties, and sshd the very last place this kind of thing should
occur.
Outside of the sshd context, I think the Ubuntu design is extremely
dangerous and in time there will be interesting consequences.
More information about the openssh-unix-dev
mailing list