named in slave mode not copying files
Running RHEL 6.1 named. Have it running in primary mode on one server, and slave mode on the other. The slave version gets the zones from the primary version, but it is not capable of creating the slave files. So it works, but I'm aware that if the secondary ever rebooted while the primary was down, neither would work.
I believe I had the persmissions correct on the directories, but I even went beyond that and changed /var, /var/named and everything under /var/named to 777 permissions. In /etc/sysconfig/named I have set -- ENABLE_ZONE_WRITE=yes named_write_master_zones=yes Still get the following error -- Code:
Apr 8 12:18:14 postgres-02 named[6248]: dumping master file: /var/named/slaves/tmp-6QzqbnrkFm: open: permission denied |
SElinux or apparmor?
most likely the issue. |
I didn't set up this server, so I'm not 100% certain if SElinux or apparmor is running, but if they are, shouldn't the settings I mentioned in /etc/sysconfig/named give the appropriate permissions?
How do I tell if selinux or apparmor is running? If they are, how do I set them to allow named to write files? |
Those avc warnings are from SELinux, but I'd try to find out why its not working rather than turn SELinux off.
Possibly its a bug and one of the SELinux types is wrong. http://www.linuxtopia.org/online_boo...hel_6_selinux/ Also, normally named is chrooted these days, so maybe it should be writing elsewhere viz: Quote:
|
All times are GMT -5. The time now is 01:59 AM. |