LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-21-2009, 04:28 PM   #1
mjlouis
Member
 
Registered: Nov 2008
Posts: 48

Rep: Reputation: 16
Apt-get, with proxy and security


Hi all,
Hopefuly this is simple and just a case of long-day-itus with a side order of me being a numbnuts! Anyway, here's the problem:

I have a Linux box that access the internet through a proxy that needs authentication. The back end systems are Windows active directory if that's of help/hinderance.
Now, when I want to run apt-get commands, I could just open a terminal and stick in:

Code:
export http_proxy="http://domain\username:mypassword@someproxy.com:80/"
Then apt-get as much as I like. Unfortunately, this means a large dose of clear-text password, which I don't like. I can clear out my history, but there must be a better way. I could also export that environment variable through my profile, but it still needs my password sitting there in clear text.

So, anyone know of a better way? Pointers to RTFM are also welcome...if you point me to the relevant 'FM', I will 'RT' :-)

Thanks and virtual pints/chocolate await!
 
Old 07-21-2009, 09:07 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Create an apt.conf file in you home directory with the apropriate username/password combination and make the file 600. Call apt with the -c option. Or maybe apt has an option for look for a certain config file in your home dir without any special options.

Making the file 600 in your home dir is an acceptable security for files containing passwords, done my fetchmail and MySQL.

jlinkels
 
Old 07-22-2009, 02:00 PM   #3
mjlouis
Member
 
Registered: Nov 2008
Posts: 48

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jlinkels View Post
Create an apt.conf file in you home directory with the apropriate username/password combination and make the file 600. Call apt with the -c option. Or maybe apt has an option for look for a certain config file in your home dir without any special options.

Making the file 600 in your home dir is an acceptable security for files containing passwords, done my fetchmail and MySQL.
jlinkels
Nice! I like that. Please help yourself to the large bag of virtual chocolate and a pint <points over there>

Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up proxy in Apt-Get's apt.conf? rykel Fedora 9 10-09-2013 03:24 AM
No proxy for apt-get gabsik Linux - Software 7 02-01-2007 09:08 PM
apt-get behind a proxy, security issues? R00ts Debian 4 04-19-2005 10:04 AM
apt-proxy and cron-apt - download once for the whole LAN Abject Debian 1 06-20-2004 01:53 PM
APT behind a proxy geniarse Debian 4 04-14-2004 09:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration