On Tue, Feb 17, 2015 at 2:40 PM, Stefan Wollny <stefan.wol...@web.de> wrote:
> Am 02/17/15 um 23:25 schrieb Gene: > > That is not the extent of the sudo settings. You have to look at the > > sudoers file to check whether the env settings are kept or not. > > ??? > Sorry - it was a looong day: What _exactly_ do I have to look at? That line > >> %wheel ALL=(ALL) NOPASSWD: SETENV: ALL > was right from the sudoers-file. > > Look at the entire sudoers file, not just one line. Specifically look for env_reset and env_keep. > > > > Try bypassing sudo entirely: > > > > $ sudo su - > > # export http_proxy=http://192.168.178.23:3128 > > # export ftp_proxy=http://192.168.178.23:3128 > > # pkg_add -ui > > > > So effectively you suggest running with root-privileges? OK, let's go: > You're doing it with root privileges regardless. That's how sudo works. > > ~ $ sudo su - > # export http_proxy=http://192.168.178.23:3128 > > # export ftp_proxy=http://192.168.178.23:3128 > # pkg_add -ui > Couldn't find updates for GraphicsMagick-1.3.20, ImageMagick-6.7.7.7p8, > OpenEXR-1.6.1p2, R-3.1.2, Xaw3d-1.5p2, ... [ all the other packages ] > > Nope - this did not do the trick... (at least the connect was not lost). > Okay, so now it's an issue of how you have your package source defined I believe. I'm guessing it's defined in your personal .profile and not in root's. How do you have the package source defined? > > Best, > STEFAN