I'm unable to log into JupyterHub on Linux

When I enter the correct username and password, the following error always appears:

[PAM Error 7] Authentication failure

I have already modified the jupyterhub_conf.py according to previous articles but still cannot resolve the issue.

Thanks.