Skip to content

Conversation

rkdarst
Copy link
Contributor

@rkdarst rkdarst commented Apr 28, 2018

  • This adds the option exec_prefix which can be used for overriding
    the sudo command to use when manipulating jobs.
  • This defaults to "sudo -E -u {username}" and is appended to every
    command before it is run.
  • The condor_q command did not have sudo, but likely can be used here.
  • Closes: Make easier to disable exporting of environment with sudo #39

Missing and very important: tests to ensure that exec_prefix is actually used. But please pull #72 first since that will make things easier to test.

- This adds the option exec_prefix which can be used for overriding
  the sudo command to use when manipulating jobs.
- This defaults to "sudo -E -u {username}" and is appended to every
  command before it is run.
- The condor_q command did not have this, but likely can be used here.
- Closes: jupyterhub#39
Copy link
Contributor

@willingc willingc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rkdarst The Python code looks good to me. I'm not familiar enough with the batch commands and will defer to @mbmilligan on those. Thanks.

@rkdarst
Copy link
Contributor Author

rkdarst commented May 28, 2018

Thanks for the review!

@mbmilligan mbmilligan merged commit d1e773f into jupyterhub:master May 29, 2018
@rkdarst rkdarst deleted the exec_prefix branch June 18, 2018 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make easier to disable exporting of environment with sudo
3 participants