named 9.3.3rc2 log file permission error
I am getting:
Mar 21 12:54:42 etcweb named[3220]: logging channel 'log_file' file '/var/named/named.log': permission denied Mar 21 12:54:42 etcweb named[3220]: isc_log_open '/var/named/named.log' failed: permission denied From named. My /etc/named.conf has: Code:
logging { Code:
[root@etcweb log]# ps -ef | grep named Code:
[root@etcweb log]# ls -ld /var /var/named /var/named/named.log Am running CentOS 5 with bind 9.3.3rc2: Code:
[root@etcweb log]# uname -r This is on a slave server. I can see from the master that it's doing zone transfers but the zone files don't seem to be written into the appropriate directories, either. |
Turns out that this is an selinux issue...
See: http://www.isc.org/index.pl?/sw/bind/FAQ.php Look for: "Why can't named create custom log files?" |
The direct link is http://www.isc.org/sw/bind/FAQ.php. It provides clear steps how to set up custom named_conf_t, named_cache_t and named_conf_t locations so nobody should need to disable SELinux, which is a good thing.
|
All times are GMT -5. The time now is 01:45 PM. |