[lxc-users] /etc/resolv.conf getting set with incorrect permissions

Daniel LaFlamme daniel.laflamme at gmail.com
Mon Jan 14 15:07:45 UTC 2019

Using lxc 1.0.11 on centos 7.

I create a container with the centos template. In that container,
/etc/resolv.conf gets set with permissions 640. This causes dns lookups to
work for root, but not for any other users.

On the host, /etc/resolv.conf is 644.

Is there something about container creation using this template that causes
resolv.conf to be set with these permissions? My umask on the host is 0022.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20190114/3e4f31ac/attachment.html>

More information about the lxc-users mailing list