Bug 54107 - Named's data directory
Summary: Named's data directory
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: bind   
(Show other bugs)
Version: 7.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2001-09-27 16:23 UTC by Charles Curley
Modified: 2007-04-18 16:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-09-27 16:51:19 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Charles Curley 2001-09-27 16:23:01 UTC
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):

How reproducible:

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 16:26:05 UTC
/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 16:49:22 UTC
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 16:51:13 UTC
P.S. I do not consider a bug to be closed until the originator of the bug is

Comment 4 Karsten Hopp 2002-07-22 13:30:19 UTC
/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  

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