Jupyterhub, useradd: Permission denied

Dear all,

Hi, i’ve a problem with jupyterhub :slight_smile:

[I 2022-12-23 19:33:22.071 JupyterHub samlauthenticator:560] The SAML Assertion matched the configured values
useradd: Permission denied.
useradd: cannot lock /etc/passwd; try again later.

I think it’s a privilege issue but how do I run jupyterhub as root and then have permission to add users…Then I have another question, I’m using the SAMLauthenticator module but from what I understand every time the server authentication gives me ok jupyter creates an equal user locally but is there a way to prevent him from creating the user locally?