Skip to content

Instantly share code, notes, and snippets.

@kashitan

kashitan/sudoers

Last active Aug 29, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.