Red Hat Bugzilla – Bug 112350
rndc dumpdb could not open dump file
Last modified: 2007-11-30 17:10:34 EST
From Bugzilla Helper:
User-Agent: Opera/7.23 (X11; Linux i686; U) [en]
Description of problem:
Using rndc to produce a dump of the nameserver does not produce a
Command (as root): rndc dumpdb
An error appears in /var/log/messages:
named: could not open dump file: permission denied
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Login as root
2. Enter 'rndc dumpdb'
3. tail /var/log/messages
Actual Results: Nothing, other than the error message.
Expected Results: A dump file should appear somewhere.
The problem is that we do not want to allow named to write to the
/var/named directory, which is where the dumpfile is attempting to be
created. You can create a subdirectory dump under /var/named or
/var/chroot/var/named and change its owner ship to named.named. Then
modify the /etc/named.conf file to include the following option
Then it will work.
Since named chroots, the dump directory needs to be under
/var/named/chroot/var/named and the /etc/named.conf files also needs
to be copied to /var/named/chroot/etc
I think that this should be fixed in the named RPM and in the
*** This bug has been marked as a duplicate of 126638 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.