Let PAM to provision users on their first login
Marco Trevisan
marco at ubuntu.com
Tue Nov 24 05:20:00 AEDT 2026
> Nico Williams wrote:
>
>> What is a serious problem is that none of this will work for anything
>> other than password or keyboard-interactive userauth because the
>> point
>> is that either the PAM/NSS modules will need user credentials, or an
>> interactive user account sign-up is involved, and the former can't
>> work
>> with non-interactive userauth due to limitations of those userauth
>> methods and/or limitations of PAM, and the latter is strictly
>> interactive and requires keyboard-interactive userauth.
>
> even if it only works for userid/password, getting an account setup
> with one userid/password manual login and then being able to use
> other credentials for automated access after that seems a bit step
> forward.
Yeah indeed once you're in you can just setup a key-based
authentication system that it's definitely better for server
usage, but it's not something you can do for users that do
not exist yet and that are authenticated (and checked) by
a third party server.
> (now, I personally will never tie any of my machines to a provider
> like google for local logins, but I can see cases where it would be
> appropriate)
I wouldn't myself for my machine, but indeed that's what
various companies want to be able to check their users
to access to instances, having a single identity provider
that can cover both desktop and server users.
More information about the openssh-unix-dev
mailing list