On Fri, Apr 13, 2012 at 09:34:05PM -0000, Markus Berndt wrote:
> One thing I now noticed is that when I get a root shell with 'sudo
> bash', wget does not work with my proxy, while it works fine from my
> user account. Maybe that is actually the problem?
Yes, that's the problem in this context.
You can specify in /etc/sudoers that you want your proxy variable to be
preserved by adding this line:
Defaults env_keep="http_proxy"
Note that this allows any user with sudo access to MITM root's network
connections, so is not enabled by default.
We should really just make sudo pull in /etc/environment though, I think.
On Fri, Apr 13, 2012 at 09:34:05PM -0000, Markus Berndt wrote:
> One thing I now noticed is that when I get a root shell with 'sudo
> bash', wget does not work with my proxy, while it works fine from my
> user account. Maybe that is actually the problem?
Yes, that's the problem in this context.
You can specify in /etc/sudoers that you want your proxy variable to be
preserved by adding this line:
Defaults env_keep= "http_proxy"
Note that this allows any user with sudo access to MITM root's network
connections, so is not enabled by default.
We should really just make sudo pull in /etc/environment though, I think.