Let PAM to provision users on their first login

Marco Trevisan marco at ubuntu.com
Fri Nov 20 08:47:16 AEDT 2026


On 19 nov 2026 at 15:35, Theo de Raadt wrote:

> Marco Trevisan <marco at ubuntu.com> wrote:
>
>> Nope, NSS is just pluggable as PAM is, and what we did is a specific
>> module
>> that just expose our users. We did not change NSS per se, but we just
>> have
>> a module that exposes an user to SSHd when it asks for it.
>>
>> But we did not change NSS per se, the way NSS works is the same and
>> can be
>> driven differently by systemd, or winbind or others.
>
> Please read what you are writing.
>
> You changed it.  Now you own the consequences of that change.

Ehm?! What are you saying!? :)

We did not touch NSS as the implementation of it in glibc, we do are 
providing
an NSS module that has a specific behavior when a new user is requested 
for sshd.

So if by "changing NSS" you mean changing its behavior, yes, but just 
doing its
job. We did not change anything of its internal or logic. That's what I 
meant.

> I agree with Damien that the proposal is extremely risky for the
> non-PAM / non-NSS systems we run on, and I am reading an underlying
> tone that you don't care about those other systems and they would be
> our problem.

You're reading is wrong. do care about any system here, and indeed I 
don't want
to propose any harmful issue to systems that are no relying on PAM or 
NSS.

But I also know that those systems are many and have requirements that 
could be
achieved together with keeping non-pam systems to work safely.



More information about the openssh-unix-dev mailing list