Last active
January 30, 2024 00:27
-
-
Save hindol/4483374 to your computer and use it in GitHub Desktop.
How to setup proxy for `sudo` environment. Tested for `Ubuntu` and `Linux Mint`.
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
# The following should be in `/etc/sudoers`. To edit `/etc/suoders` use the command `sudo visudo` in a terminal. | |
# *Do NOT attempt to modify the file directly* | |
Defaults env_reset | |
Defaults mail_badpass | |
Defaults env_keep+="http_proxy ftp_proxy all_proxy https_proxy no_proxy" # Add this line | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment