# Create a new user and an admin

**URL:** <https://discourse.jupyter.org/t/create-a-new-user-and-an-admin/20061>\
**Category:** JupyterHub\
**Tags:** community, jupyterhub, how-to, help-wanted\
**Created:** [June 21, 2023, 11:22pm UTC](https://discourse.jupyter.org/t/create-a-new-user-and-an-admin/20061 "2023-06-21T23:22:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul\_paul](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/paul_paul/32/10285_2.png) [@paul\_paul](https://discourse.jupyter.org/u/paul_paul)\
**Post date:** [June 21, 2023, 11:22pm UTC](https://discourse.jupyter.org/t/create-a-new-user-and-an-admin/20061/1 "2023-06-21T23:22:54Z")

</div>

Hello I am currently a new user in JupyterHub,I am trying to add a new user and a new admin by `c.Authenticator.allowed_users = {'user1'}` and `c.Authenticator.admin_users = {'user1'}` respectively. I comment out these 2 lines from the `jupyterhub_config.py`file too. But still I am getting "Invalid username or password ". Regarding the password, I think for the first time “user1” will generate the password, when he/she will try to login. Is it right? Am I doing anything wrong?

---

<div class="post-metadata">

**Author:** ![mahendrapaipuri](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/mahendrapaipuri/32/6800_2.png) [@mahendrapaipuri](https://discourse.jupyter.org/u/mahendrapaipuri)\
**Post date:** [June 22, 2023, 6:39am UTC](https://discourse.jupyter.org/t/create-a-new-user-and-an-admin/20061/2 "2023-06-22T06:39:08Z")

</div>

What authenticator are you using? If you are using default authenticator, which is `PAMAuthenticator`, the `user1` should exist locally on the machine where JupyterHub is deployed. If you want to test JupyterHub will different users without having to create local user accounts, use [DummyAuthenticator](https://github.com/jupyterhub/jupyterhub/blob/161cdcd7e711845d2c4c157c150f251261a5f925/jupyterhub/auth.py#L1192-L1217) which allow any users set in `c.Authenticator.allowed_users` set.
