[ubuntu-uk] proxy settings with log in for package manager?

Neil Greenwood 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>
> escribió:
> > On 6 September 2013 15:51, Andrés Muñiz Piniella <andresmp at gmail.com>
> wrote:
> >>[snip]
> >> I finally came up the solution: looking up in askubuntu [1] 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
this case.


Neil.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20130909/a78fa579/attachment.html>


More information about the ubuntu-uk mailing list