Skip to content

Instantly share code, notes, and snippets.

@kashitan
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kashitan/0719e48032c70501698c to your computer and use it in GitHub Desktop.
Save kashitan/0719e48032c70501698c to your computer and use it in GitHub Desktop.
JupyterHub用/etc/sudoers
# comma-separated whitelist of users that can spawn single-user servers
Runas_Alias JUPYTER_USERS = [user1], [user2]
# the command(s) the Hub can run on behalf of the above users without needing a password
# the exact path may differ, depending on how sudospawner was installed
Cmnd_Alias JUPYTER_CMD = /usr/bin/sudospawner
# actually give the Hub user permission to run the above command on behalf
# of the above users without prompting for a password
jupyter ALL=(JUPYTER_USERS) NOPASSWD:JUPYTER_CMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment