Setting Proxy for Sudo ( sudo export http_proxy , doesn’t work )

Instead of setting sudo proxy using export command try this

  • Open visudo

sudo visudo

  • Then add the following line

Defaults env_keep += “ftp_proxy http_proxy https_proxy”

This will ensure that your normal users values will be inherited by sudo

Advertisements

4 thoughts on “Setting Proxy for Sudo ( sudo export http_proxy , doesn’t work )

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s