[[FrontPage]] * the working directory is not writable @ FreeBSD 10.3 [#t3705b81] # chown bind:bind /usr/local/etc/namedb http://www.omakase.org/freebsd/the_working_directory_is_not_writable.html --- ---- http://mag.autumn.org/Content.modf?id=20100322140453 Jul 3 15:43:07 flora named[627]: starting BIND 9.4.3-P2 -t /var/named -u bind Jul 3 15:43:08 flora named[627]: max open files (3405) is smaller than max sockets (4096) Jul 3 15:43:08 flora named[627]: command channel listening on 127.0.0.1#953 Jul 3 15:43:08 flora named[627]: the working directory is not writable Jul 3 15:43:08 flora named[627]: zone kuji-clinic.info/IN: kuji-clinic.info/MX 'mail.kuji-clinic.info' is a CNAME (illegal) Jul 3 15:43:08 flora named[627]: running /etc/syscntl.conf に以下を追加 kern.maxfiles=4096 kern.maxfilesperproc=4096 作業ディレクトリに手動で設定しても戻ってしまうので、設定が必要です。 つまり以下の通り。vimはviに変えてあります。実際はcdで移動して作業したのでフルパスを打ってませんが。 #chmod u+w /etc/mtree/BIND.chroot.dist #vi /etc/mtree/BIND.chroot.dist Change in /etc/mtree/BIND.chroot.dist /set type=dir uname=root gname=wheel mode=0755 to /set type=dir uname=bind gname=wheel mode=0755 /var/named/etc/namedb/kuji-clinic.info.db IN MX 100 mail.kuji-clinic.info. to IN MX 100 kuji.kuji-clinic.info. http://www.bsddiary.net/doc/bind9.html