[ubuntu-uk] proxy settings with log in for package manager?
neil.greenwood.lug at gmail.com
Mon Sep 9 07:43:00 UTC 2013
On 8 September 2013 08:07, Muñiz Piniella, Andrés
<a75576 at alumni.tecnun.es>wrote:
> El 07/09/2013 21:11, "Neil Greenwood" <neil.greenwood.lug at gmail.com>
> > On 6 September 2013 15:51, Andrés Muñiz Piniella <andresmp at gmail.com>
> >> I finally came up the solution: looking up in askubuntu  it seems I
> >> need my username and password on a plain text file the
> >> /etc/apt/apt.conf.d/
> >> [snip]
> > I need to use a proxy, but I don't have to authenticate. This is the
> correct place to store the configuration. Bear in mind that this file is
> only readable by root, so the credentials aren't at much risk.
> I was pretty sure i was able to read it with nano without root. But I will
> check. Thanks for the piece of mind.
> OK, I wasn't quite correct in what I said. When you created your file in
/etc/apt/apt.conf.d, it was probably created using your default permissions
setting. However, in order to work for the proxy authentication, it only
needs to be readable by root. So after creating it, you can 'chmod go-rwx
<filename>' and 'sudo chown root: <filename>' to protect it. I actually
prefer using octal numeric permissions with chmod, which would be 400 in
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-uk