Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th September 2008, 19:45
wxman wxman is offline
Senior Member
 
Join Date: May 2007
Posts: 189
Thanks: 11
Thanked 2 Times in 2 Posts
Default Permission Denied Bind Slave Server Problems

I know this has been asked a few hundred times, because I think I've read them all.

I have two servers that I set up using the "The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server)" article. The servers both work perfectly, except the second is set up as a slave, and I'm getting this:
Code:
Sep 27 13:21:27 server2 named[25319]: zone tlthost.net/IN: Transfer started.
Sep 27 13:21:27 server2 named[25319]: transfer of 'tlthost.net/IN' from 192.168.xx.xxx#53: connected using 192.168.xx.xxx#59827
Sep 27 13:21:27 server2 named[25319]: dumping master file: tmp-NrfJj6zM6s: open: permission denied
Sep 27 13:21:27 server2 named[25319]: transfer of 'tlthost.net/IN' from 192.168.xx.xxx#53: failed while receiving responses: permission denied
Sep 27 13:21:27 server2 named[25319]: transfer of 'tlthost.net/IN' from 192.168.xx.xxx#53: end of transfer
for all my slave zones. I have checked the named.conf, all the zone files, and everything looks exactly as it should. The file owners for /var/lib/named/etc/bind/, and all it's files are bind:bind. The permissions are 775. I have shut off, and removed AppArmor. I followed the suggestion for others that had the same problem of setting:
Code:
chown root:root /etc/bind/rndc.key
chmod 755 /etc/bind/rndc.key
but that didn't help.
I know it's just something I'm missing, but it's driving me nuts trying to find it!
Reply With Quote
Sponsored Links
  #2  
Old 28th September 2008, 13:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's in the log on the master when the slave tries to start a zone transfer?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th September 2008, 14:04
wxman wxman is offline
Senior Member
 
Join Date: May 2007
Posts: 189
Thanks: 11
Thanked 2 Times in 2 Posts
Default

This is from this morning.

PRIMARY SERVER:
Code:
Sep 28 06:55:35 server1 named[26955]: client 192.168.xx.xxx#49725: transfer of 'tlthost.net/IN': AXFR-style IXFR started
Sep 28 06:55:35 server1 named[26955]: client 192.168.xx.xxx#49725: transfer of 'tlthost.net/IN': AXFR-style IXFR ended
SLAVE:
Code:
Sep 28 06:55:35 server2 named[25319]: zone tlthost.net/IN: Transfer started.
Sep 28 06:55:35 server2 named[25319]: transfer of 'tlthost.net/IN' from 192.168.xx.xxx#53: connected using 192.168.xx.xxx#49725
Sep 28 06:55:35 server2 named[25319]: dumping master file: tmp-eoC1UgYwOE: open: permission denied
Sep 28 06:55:35 server2 named[25319]: transfer of 'tlthost.net/IN' from 192.168.xx.xxx#53: failed while receiving responses: permission denied
Sep 28 06:55:35 server2 named[25319]: transfer of 'tlthost.net/IN' from 192.168.xx.xxx#53: end of transfer
Reply With Quote
  #4  
Old 29th September 2008, 17:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Ok, the problem seems to be on the slave only, probably directory permissions. What's the output of
Code:
ls -la /etc/bind/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 30th September 2008, 03:43
wxman wxman is offline
Senior Member
 
Join Date: May 2007
Posts: 189
Thanks: 11
Thanked 2 Times in 2 Posts
Default

This is off of the slave:
Code:
root@server2:~# ls -la /etc/bind/
total 88
drwxrwsr-x 2 bind bind 4096 2008-09-27 13:24 .
drwxr-xr-x 3 root root 4096 2008-07-17 12:10 ..
-rw-r--r-- 1 bind bind  237 2008-07-07 17:06 db.0
-rw-r--r-- 1 bind bind  271 2008-07-07 17:06 db.127
-rw-r--r-- 1 bind bind  237 2008-07-07 17:06 db.255
-rw-r--r-- 1 bind bind  353 2008-07-07 17:06 db.empty
-rw-r--r-- 1 bind bind  545 2008-09-23 12:40 db.local
-rw-r--r-- 1 bind bind 2878 2008-07-07 17:06 db.root
-rw-r--r-- 1 root root 1725 2008-09-27 13:24 named.conf
-rw-r--r-- 1 root root  819 2008-08-02 12:54 named.conf~
-rw-r--r-- 1 bind bind  165 2008-07-07 17:06 named.conf.local
-rw-r--r-- 1 bind bind  695 2008-07-24 12:38 named.conf.options
-rw-r--r-- 1 root bind  769 2008-09-23 11:28 pri.191.223.64.in-addr.arpa
-rwxrwxr-x 1 bind bind   77 2008-07-17 12:08 rndc.key
-rw-r--r-- 1 bind bind  474 2008-09-29 16:19 sec.bette-ford.com
-rw-r--r-- 1 bind bind  508 2008-09-29 17:16 sec.blacks-abroad.com
-rw-r--r-- 1 bind bind  471 2008-09-29 16:17 sec.music-ink.com
-rw-r--r-- 1 bind bind  506 2008-09-29 15:37 sec.niquistanhope.com
-rw-r--r-- 1 bind bind  479 2008-09-29 15:14 sec.ourbookspace.com
-rw-r--r-- 1 bind bind  559 2008-09-29 17:07 sec.tlthost.net
-rw-r--r-- 1 bind bind  479 2008-09-29 16:02 sec.vonniehughes.com
-rw-r--r-- 1 bind bind 1317 2008-07-07 17:06 zones.rfc1918
Reply With Quote
  #6  
Old 30th September 2008, 17:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Can you try this?
Code:
chown bind:bind /etc/bind/named.conf
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot connect to saslauthd server: Permission denied migm HOWTO-Related Questions 9 20th February 2011 03:18
rsync: opendir "/var/www/web44/web" failed: Permission denied (13) adrenalinic HOWTO-Related Questions 7 4th August 2009 13:16
Problem with keeping Apache alive bobeq Server Operation 3 29th November 2007 16:11
SuSE as master DNS server and Centos as slave DNS server... sthompson Server Operation 3 17th September 2006 13:24
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 00:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.