Skip to content

How to create user? #1210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kiwi0217 opened this issue Jul 13, 2017 · 10 comments
Closed

How to create user? #1210

kiwi0217 opened this issue Jul 13, 2017 · 10 comments

Comments

@kiwi0217
Copy link

Sorry, i'm a beginner. i installed jupyterhub, and run it successfully. But i can't find the place to creat account in the login interface. And i have read the "Getting started with JupyterHub" but still don't understand how to creat account to login.

@zsluedem
Copy link

the default authenticator is PAMAuthenticator.
PAMAuthenticator means it uses the account in the linux system.

suposed you have an account in your linux named "Robert", and the password is "123456"
just use the "Robert" for username, and "123456" for password.

in short words, use the account you login in you linux system!!!!

@minrk
Copy link
Member

minrk commented Jul 14, 2017

JupyterHub doesn't itself allow creation of user accounts. That's generally handled by the outside system that the Hub uses for authentication, such as PAM (system users) or GitHub, etc.

JupyterHub's only sense of users is a whitelist of users you want to allow access to your Hub, in case you only want a subset of the users in your authentication service to have access to your Hub (e.g. you don't want to grant all GitHub users access to your Hub). For this, you use the c.Authenticator.whitelist configurable in jupyterhub_config.py:

c.Authenticator.whitelist = {'me', 'you', 'other'}

@yuvipanda yuvipanda changed the title How to creat user? How to create user? Jul 15, 2017
@willingc
Copy link
Contributor

Hi @kiwi0217,

I hope @minrk's response helped you. As a beginner, you may find the Zero to JupyterHub guide helpful too.

@jingsong-liu
Copy link

how about I run jupyterhub in docker caontainners, then what is my pam account?
@zsluedem

@zsluedem
Copy link

zsluedem commented Jun 2, 2018

@ShannonLS I am not sure. It depends on how you build the image. If you use the official docker image, you can check here. The user is nobody, maybe the password is blank

@sorenwacker
Copy link

Where can I find this jupyterhub_config.py file?

@vkredxyz
Copy link

vkredxyz commented Feb 8, 2019

you need to run the command jupyterhub --generate-config

@Tehami
Copy link

Tehami commented Sep 30, 2020

how about I run jupyterhub in docker containers, then what is my pam account?
@zsluedem

I have the same problem. I want to use Linux users but jupyterhub is running inside a docker container. Can anyone suggest a solution please? thanks

@stefaneidelloth
Copy link

stefaneidelloth commented Oct 21, 2020

Open a second console and run
docker container ls
to see the existing containers and their ids. Then run
docker exec -it $containerid$ bash
To show a bash console. (First few characters of the id of the jupyterhub container are enough to identify it)
In order to create a new linux user:

useradd $username$
passwd $username$

Then you will be asked for the password.

In addition, run following command within the container:

pip install notebook

Otherwise Spawning server does not work, also see:
https://stackoverflow.com/questions/56441563/jupyterhub-spawn-error-first-installation

Afterwards you are able to login with the just created login credentials.

@debajyotibd
Copy link

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 this 2 lines from the jupyterhub_config.pyfile too. But sill I am getting "Invalid username or password ". Regarding the password, I think for the first time "user1" will generate the password. Is it right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants