minrk / pamela

Python PAM interface
Other
34 stars 10 forks source link

Non-root using pamela to auth non-root #9

Closed MincingWords closed 5 years ago

MincingWords commented 6 years ago

non-root user "foo" goes "python3.4 -m pamela -a foo", enters password, and it works. but if user foo then goes "python3.4 -m pamela -a bar" and enters bar's password (bar's un/pw works in console and ssh) then "[PAM Error 7] Authentication failure". Is there a way to configure so that this will work? trying to avoid running jupyterhub as root.

minrk commented 6 years ago

In a basic setup, a user must be able to read the password database to do this. On Ubuntu, this means being added to the shadow group. These docs cover setting up JupyterHub with local users without running as root.