Red Hat Bugzilla – Bug 69316
no DNS bad permissions on /etc/hosts /etc/resolv.conf
Last modified: 2008-05-01 11:38:03 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513
Description of problem:
Changing to a static IP address and choosing primary and secondary DNS using
/usr/bin/neat removes read permission for others on /etc/resolv.conf and
/etc/hosts. This prevents DNS from working and causes problems where the IP
address of localhost cannot be looked up.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2.In the Devices tab, edit the eth0 device, setting all field for a "Satically
set IP address" and clicking on "OK" and then applying the changes.
3.In the DNS tab, set primary and secondary DNS IP addresses and apply the changes.
Actual Results: 1.In a terminal window, type "dig". It will not work because
read permission for general users has been removed on /etc/resolv.conf.
2.Read permission for general users on /etc/hosts has also been removed.
Expected Results: Read permission for "others" should be set on both
/etc/resolve.conf and /etc/hosts after running /usr/bin/neat and setting a
static IP address.
fixed in CVS... thx
1.10.11 has been built
This bug also appears under RedHat 8.0, which has redhat-config-network-1.1.20-1.
Could you please propagate the change to Redhat 8.0?
Each time I change something in neat is makes /etc/resolv.conf and /etc/hosts
readable to root and root group only, breaking all network connectivity.