How to allow OS users to login into JH

Hello!

How to setup JH (i’m using TLJH) to allow login under OS user? For example, I created user via:

sudo adduser someuser
//passwd: somepass

But when I try to login with someuser:somepass on JH I get incorrect password.

How to fix it please?

Thank you!

tljh by default doesn’t use system users, it uses its own user database in nativeauthenticator (or firstuseauthenticator). To use system users, you’ll want to change the Authenticator and spawner. You can do this with:

c.JupyterHub.authenticator_class = "pam" # this will use real system users and passwords
c.JupyterHub.spawner_class = "systemd" # this will, too