第 1 頁 (共 1 頁)
bind slave named file permission denied
發表於 : 2017-07-20 16:05:29
由 yehlu
https://www.phpini.com/linux/rhel-cento ... dns-server
代碼: 選擇全部
Jul 20 09:00:33 localhost named[2137]: dumping master file: tmp-FpCR0ceh6r: open: permission denied
代碼: 選擇全部
sudo setenforce 0
service named restart
tail /var/log/messages
Re: bind slave named file permission denied
發表於 : 2017-07-20 16:14:01
由 yehlu
[root@vm02 ~]# getsebool -a | grep 'named'
named_bind_http_port --> off
named_write_master_zones --> off
[root@vm02 ~]# setsebool -P named_write_master_zones on
[root@vm02 ~]# getsebool -a | grep 'named'
named_bind_http_port --> off
named_write_master_zones --> on
[root@vm02 ~]# cd /var/named/
[root@vm02 named]# ls
data dynamic named.ca named.empty named.localhost named.loopback slaves
[root@vm02 named]# service named restart
Stopping named: . [ OK ]
Starting named: [ OK ]
[root@vm02 named]# ls
data named.172.16.67 named.empty named.loopback slaves
dynamic named.ca named.localhost named.twnic.demo
[root@vm02 named]#