Defaults !env_reset
to your sudoers file.
]]>If you only need the proxy variable for wget, you can change that in /etc/wgetrc
I'm not behind a proxy now, so I can't test this, but... does "sudo export" make it work as you would like? Keep in mind that exporting the proxy variable is local to the particular terminal instance.
[theta@boolean-pc ~]$ sudo export http_proxy="http://user:pass@proxy.iist.ac.in:80/"
Password:
sudo: export: command not found
[theta@boolean-pc ~]$
So this can't be done. Thanks anyway for the suggestion.
]]>I'm not behind a proxy now, so I can't test this, but... does "sudo export" make it work as you would like? Keep in mind that exporting the proxy variable is local to the particular terminal instance.
]]>wget http://link/
works, but
sudo wget http://link/
doesn't.
I require sudo to be used with pacman to upgrade my system.
]]>