| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-27-2011, 11:36 AM
|
#1
|
|
Member
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 194
Rep:
|
bind chroot - the working directory is not writable
I have just installed RHEL 6 and installed bind-chroot via yum.
I am trying to configure everything to match our old servers. Everything seems find except I keep receiving the following error in /var/log/messages:
Jun 27 12:28:54 intns1 named[13175]: the working directory is not writable
In the bind log I am also seeing:
27-Jun-2011 12:30:00.979 general: error: dumping master file: tmp-mpFV9Kjw1k: open: permission denied
Which I am assuming is because the working dir is not writeable.
Why working directory is set:
options {
directory "/var/named/data";
It seems to be writable:
drwxrwx---. 2 named named 4096 May 27 06:38 data
Any help would be appreciated.
|
|
|
|
06-27-2011, 12:14 PM
|
#2
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,365
|
Hi,
If you have installed bind-chroot, then in your case the working directory is /var/named/chroot/var/named/data.
The 1st part (/var/named/chroot) is the jail under which named operates and the 2nd (/var/named/data) is the one defined by the "directory" option in named.conf
Take a look at this howto for details
Regards
|
|
|
|
06-27-2011, 01:13 PM
|
#3
|
|
Member
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 194
Original Poster
Rep:
|
Quote:
Originally Posted by bathory
Hi,
If you have installed bind-chroot, then in your case the working directory is /var/named/chroot/var/named/data.
The 1st part (/var/named/chroot) is the jail under which named operates and the 2nd (/var/named/data) is the one defined by the "directory" option in named.conf
Take a look at this howto for details
Regards
|
I understand what your saying, but since bind is running in the chroot it only needs the "2nd" part correct?
For example I am using /var/named/chroot as the jail, and /var/named/data as the working directory.
drwxrwx---. 2 named named 4096 Jun 27 11:53 /var/named/chroot/var/named/data
But it still says its not writable. 
|
|
|
|
06-27-2011, 02:02 PM
|
#4
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,365
|
Then I guess it's SELinux
I'm not running RHEL, but I guess
Code:
chcon -R system_u:object_r:named_cache_t /var/named/chroot
should work.
You may take a look here for details.
Regards
|
|
|
1 members found this post helpful.
|
06-28-2011, 08:36 AM
|
#5
|
|
Member
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 194
Original Poster
Rep:
|
Quote:
Originally Posted by bathory
Then I guess it's SELinux
I'm not running RHEL, but I guess
Code:
chcon -R system_u:object_r:named_cache_t /var/named/chroot
should work.
You may take a look here for details.
Regards
|
Thanks a million, it turned out it was selinux. I should have thought of that.
I used audit2allow to create a policy from the audit log, now everything is working correctly.
|
|
|
|
06-28-2011, 10:32 AM
|
#6
|
|
Member
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Kubuntu Sabayon Peppermint
Posts: 46
Rep:
|
By default SELinux on RH only allows writing to the slave directory.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:15 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|