bind slave named file permission denied

回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

bind slave named file permission denied

文章 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
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: bind slave named file permission denied

文章 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]#
回覆文章

回到「CentOS」