Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My corporation requires proxy to which you need to authorise. We are running on Win7 system. I have installed VirtualBox with Ubuntu (as 1st machine) and CentOS (2nd machine).

While in Firefox access works in both virtual machines - credential popup shows up and I authorise using my domain\username and password - access is granted. But in the terminal and all OS services there is no access to the Internet.

Now - lets assume my login is as follows:

aaa.net\ubuntu
with password - ubuntu#0
  1. I set a proxy under network proxy settings to server and port
  2. then I set the proxy in the environment:

    export http_proxy=http://aaa.net\ubuntu:ubuntu#0@proxyip:port
    
  3. I also put this entry in /etc/apt/apt.conf

    Acquire::http::proxy "http://aaa.net\ubuntu:ubuntu#0@proxyip:port/"
    

But it does not work at all - apt / yum are able to connect to proxy, but then they are given a 407 authorisation error. Of course I was trying to put the URL in quotes, also I have tried to use username\@domain syntax - but that doesnt change anything.

I suspect system provides wrong syntax to the proxy - as there are special characters in both domain and password. But then again why Firefox works without any problems?

If this fails - would you know a way to set wget/yum/apt to INTERACTIVELY ask for username/password?

Most of all if you guys help me out on the problem - here is another thing. While setting env, yum, apt and or network proxy via ubuntu GUI and providing username and password - system is basically compromised, as running simple command as printenv shows your password - so if someone executes this he would have my domain details which I use to all services at work. Is there a way to put some MD5 on the passwd or to encrypt it somehow?

share|improve this question

closed as too localized by fossfreedom Jun 3 '12 at 18:35

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
... closing as OP has requested this. –  fossfreedom Jun 3 '12 at 18:36

Browse other questions tagged or ask your own question.