jupyterhub / the-littlest-jupyterhub

Simple JupyterHub distribution for 1-100 users on a single server
https://tljh.jupyter.org
BSD 3-Clause "New" or "Revised" License
1.04k stars 341 forks source link

add jupyter-* to some group #349

Closed gsemet closed 5 years ago

gsemet commented 5 years ago

Can tljh support automatically add its jupyer-* users to some groups (like "video" or "cuda", for instance)?

yuvipanda commented 5 years ago

@gsemet this is probably something we can do. Can you explain your use case a little more?

gsemet commented 5 years ago

My users need to belong at least to the video group to be able to start tensorflow-gpu. I think this is pretty legit use case, but this would involve setting a configuration such as:

user_groups:
   - video
   - cuda

and upon user creation, it would useradd -g video jupyter-myusername

mylyu commented 3 years ago

I just read the doc (https://tljh.jupyter.org/en/latest/topic/tljh-config.html#extra-user-groups), so currently we still need to add users to groups one by one, instead of automatically assigning them to groups on creation?