Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 870 Bytes

README.md

File metadata and controls

28 lines (16 loc) · 870 Bytes

SudoSpawner

Enables JupyterHub to run without being root, by spawning an intermediate process via sudo, which takes actions on behalf of the user.

The sudospawner mediator can only do two things:

  1. signal processes via os.kill
  2. spawn single-user servers

The only thing the Hub user needs sudo access for is launching the sudospawner script itself.

setup

Install:

pip install -e .

Add sudo access to the script.

Tell JupyterHub to use SudoSpawner, by adding the following to your jupyterhub_config.py:

c.JupyterHub.spawner_class='sudospawner.SudoSpawner'

example

The Dockerfile in this repo contains an example config for setting up a JupyterHub system, without any need to run anything as root.