JupyterHub LocalAuthenticator 不起作用

Ast*_*One 6 authentication pam jupyterhub

我正在尝试配置和了解最常见的 Jupyter 身份验证器的工作原理。但是,我无法理解它的LocalAuthenticator工作原理以及它与PAMAuthenticator. Jupyter 文档声明如下:The LocalAuthenticator is a special kind of authenticator that has the ability to manage users on the local system.. 鉴于我在笔记本电脑上本地运行所有内容,我的想法是我可以使用与登录 Linux 用户相同的凭据。然而这不起作用。JupyterHub 服务器给出以下消息:Failed login for <user>

我的 JupyterHub 配置文件仅包含以下行:

c.JupyterHub.authenticator_class = 'jupyterhub.auth.LocalAuthenticator'

如果我将上面的行更改为:

c.JupyterHub.authenticator_class = 'jupyterhub.auth.PAMAuthenticator'

然后一切正常并且登录成功。

有人可以向我解释这两个验证器的差异以及为什么它们LocalAuthenticator在我的情况下不起作用吗?我知道的唯一区别是(根据文档)LocalAuthenticator如果新用户不存在,则会创建新用户。但是,设置c.LocalAuthenticator.create_system_users = True并尝试使用不存在的用户登录后,不会创建新用户。

谢谢。

PS:我的操作系统是 Debian Testing,并且我已经按照 GitHub 页面上提供的说明安装了 JupyterHub。