Bug 69316 - no DNS bad permissions on /etc/hosts /etc/resolv.conf
Summary: no DNS bad permissions on /etc/hosts /etc/resolv.conf
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: redhat-config-network
Version: 7.3
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-07-20 19:33 UTC by cookgb
Modified: 2008-05-01 15:38 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-07-22 13:01:43 UTC
Embargoed:


Attachments (Terms of Use)

Description cookgb 2002-07-20 19:33:02 UTC
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):


How reproducible:
Always

Steps to Reproduce:
1.Start /usr/bin/neat
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.

Additional info:

Comment 1 Harald Hoyer 2002-07-22 13:01:38 UTC
fixed in CVS... thx

Comment 2 Trond Eivind Glomsrxd 2002-07-24 16:45:23 UTC
1.10.11 has been built

Comment 3 diego.santacruz 2002-10-04 15:43:06 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.