Let PAM to provision users on their first login

Theo de Raadt deraadt at openbsd.org
Fri Nov 20 08:03:08 AEDT 2026


Marco Trevisan <marco at ubuntu.com> wrote:

> On 19 nov 2026 at 14:46, Theo de Raadt wrote:
> 
> > Marco Trevisan <marco at ubuntu.com> wrote:
> >
> >> It's also what any other PAM based authentication system does, it
> >> never tries to ensure that an account exists as it just may be not
> >> defined
> >> yet.
> >
> > What software are you talking about here?
> 
> For example login... It does not require an account to exist.

Do you mean the login command that you have modified to support
your NSS behaviour?

> Same with login managers (gdm of course does not).
 
All the X login managers used to do getpwnam() before authentication.
And somewhere along the line that was changed?

I think you'll admit that there are plenty of systems which *DO* require
the user to exist.  


More information about the openssh-unix-dev mailing list