Last active
August 29, 2015 14:26
-
-
Save kashitan/0719e48032c70501698c to your computer and use it in GitHub Desktop.
JupyterHub用/etc/sudoers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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