On 8 September 2013 08:07, Muñiz Piniella, Andrés
wrote:
> El 07/09/2013 21:11, "Neil Greenwood"
> escribió:
> > On 6 September 2013 15:51, Andrés Muñiz Piniella
> 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
' and 'sudo chown root: ' to protect it. I actually
prefer using octal numeric permissions with chmod, which would be 400 in
this case.
Neil.
--
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/