Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.

Bug 54107

Summary: Named's data directory
Product: [Retired] Red Hat Linux Reporter: Charles Curley <charlescurley>
Component: bindAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-09-27 12:51:19 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Charles Curley 2001-09-27 12:23:01 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-2 i686; Nav)

Description of problem:
I had problems with bind 9 when I first installed RH 7.1, so I
reverted to bind 8 while I solved other problems. I just now got
around to upgrading to the bind 9 package that comes with RH 7.1,
bind-9.1.0-10. I ran across the following problem when doing some
zone transfers. named has its own directory under /etc, /etc/named.

However, I originally created it owned by root and not world
writable. This is an error. It has to be secured against other users
reading and writing to the directory. So I made the directory and all
the files there owned by user and group named.

[root@tecla named]# ll
total 28
drwx------    2 named    named        4096 Sep 27 08:43 .
drwxr-xr-x   44 root     root         4096 Sep 27 08:47 ..
-rw-------    1 named    named         183 Sep 26 16:48 db.127.0.0
-rw-------    1 named    named         518 Sep 27 08:53 db.192.168.1
-rw-------    1 named    named        2769 Feb  7  2001 db.cache
-rw-------    1 named    named         514 Sep 27 08:53 db.localdomain

Perhaps the RPM installation should create this directory correctly?
If so, perhaps it should install a minimal named.config with the
directory option set to it? The default directory is the one in which
named is started, wherever that may be.


Version-Release number of selected component (if applicable):
bind-utils-9.1.0-10
bind-9.1.0-10


How reproducible:
Always

Steps to Reproduce:
1. Install the bind and bind-utils packages on a fress RH 7.1 installation.
2. cd /etc
3. mkdir named

etc. as noted in the descrption above
	

Actual Results:  N/A; see description

Expected Results:  N/A; see description

Additional info:

N/A; see description
Comment 1 Bernhard Rosenkraenzer 2001-09-27 12:26:05 EDT
/etc/named is a nonstandard directory, you should use /var/named, which is 
created with the correct permissions.

Old versions of bind used to need root privileges, current versions drop 
privileges and run as their own user.
Comment 2 Charles Curley 2001-09-27 12:49:22 EDT
Is this documented anywhere? If not, it should be. I have been using /etc/named
for years to be consistent with other similar usage I have found on other Red
Hat distributions.
Comment 3 Charles Curley 2001-09-27 12:51:13 EDT
P.S. I do not consider a bug to be closed until the originator of the bug is
satisfied.
Comment 4 Karsten Hopp 2002-07-22 09:30:19 EDT
/etc is not a place to save db caches. Please have a look at the FHS:   
http://www.pathname.com/fhs/2.2/fhs-3.7.html and  
http://www.pathname.com/fhs/2.2/fhs-5.13.html