Skip to content

Instantly share code, notes, and snippets.

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 utylee/eeca9b7845aff94198a15d4e3f89b660 to your computer and use it in GitHub Desktop.
Save utylee/eeca9b7845aff94198a15d4e3f89b660 to your computer and use it in GitHub Desktop.
sudo root pyenv use python3 howto sudoer sudo visudo
add any necessary path (e.g., /app/pyenv/shims) to secure_path, and it will be passed to sudo commands.
Defaults secure_path = /app/pyenv/libexec:/app/pyenv/shims:/sbin:/bin:/usr/sbin:/usr/bin
more: define-path-environment-variable-sudo-commands
from: https://github.com/pyenv/pyenv/issues/79
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment