<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2297723</guid>
        <pubDate>Wed, 24 Jun 2009 19:36:15 +0000</pubDate>
        <title>FreeBSD: named: the working directory is not writable</title>
        <link>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2297723</link>
        <description><![CDATA[AlexJ: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=275706&view=findpost&p=2297228'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>vot &#064; <time class="tag-quote__quoted-time" datetime="2009-06-24T12:03:07+04:00">24.06.09, 08:03</time></span><div class='quote '>Так что спасибо, что еще раз ткнули меня носом&#33; :)</div></div><br>
Да нормально все, бывает дня два сидишь волосы рвешь, а потом блин оказывается какая нибудь простая чухня.]]></description>
        <author>AlexJ</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2297228</guid>
        <pubDate>Wed, 24 Jun 2009 08:03:07 +0000</pubDate>
        <title>FreeBSD: named: the working directory is not writable</title>
        <link>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2297228</link>
        <description><![CDATA[vot: Видел я это рецепт.<br>Но подумал, что он требует перекомпиляции, поскольку там в заголовке файла приведена ссылка на ветку с исходниками системы...<br>Был неправ&#33; :)<br>Заменил строку, перезапустил named.<br>Результат - всё работает без ругательств&#33;<br>Так что спасибо, что еще раз ткнули меня носом&#33; :)]]></description>
        <author>vot</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296814</guid>
        <pubDate>Tue, 23 Jun 2009 16:31:26 +0000</pubDate>
        <title>FreeBSD: named: the working directory is not writable</title>
        <link>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296814</link>
        <description><![CDATA[AlexJ: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=275706&view=findpost&p=2296303'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>vot &#064; <time class="tag-quote__quoted-time" datetime="2009-06-23T05:56:37+00:00">23.06.09, 05:56</time></span><div class='quote '>Как избавиться от этого ругательства?</div></div><br>
Поменять в <br>
/etc/mtree/BIND.chroot.dist<br>
<br>
строчку<br>
/set type=dir uname=root gname=wheel mode=0755<br>
на<br>
/set type=dir uname=bind gname=wheel mode=0755<br>
<br>
а вообще последние версии баинда мягко говоря раздражают своей монстрючестью, посмотрите в сторону TinyDNS, есть все необходимые фичи, легок и написан профессионалами]]></description>
        <author>AlexJ</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296519</guid>
        <pubDate>Tue, 23 Jun 2009 09:58:22 +0000</pubDate>
        <title>FreeBSD: named: the working directory is not writable</title>
        <link>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296519</link>
        <description><![CDATA[vot: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=275706&view=findpost&p=2296473'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Спящий &#064; <time class="tag-quote__quoted-time" datetime="2009-06-23T09:01:50+00:00">23.06.09, 09:01</time></span><div class='quote '>от какого юзера bind запускал? </div></div><br>
От рута.<br>
Ну и при перезагрузке он сам от рута запускается сначала...]]></description>
        <author>vot</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296473</guid>
        <pubDate>Tue, 23 Jun 2009 09:01:50 +0000</pubDate>
        <title>FreeBSD: named: the working directory is not writable</title>
        <link>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296473</link>
        <description><![CDATA[Спящий: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=275706&view=findpost&p=2296303'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>vot &#064; <time class="tag-quote__quoted-time" datetime="2009-06-23T05:56:37+00:00">23.06.09, 05:56</time></span><div class='quote '>На всякий пожарный сделал chown bind:wheel /var/named .<br>
Рестартовал named.<br>
Получил в ответ ругательство, что, мол какой-то идиот поменял владельца с рута на бинд, и поэтому автоматом всё снова отдается руту.</div></div>А ты от какого юзера bind запускал?]]></description>
        <author>Спящий</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296431</guid>
        <pubDate>Tue, 23 Jun 2009 08:17:54 +0000</pubDate>
        <title>FreeBSD: named: the working directory is not writable</title>
        <link>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296431</link>
        <description><![CDATA[vot: Mel_Flynn рекомендует не давать права записи для папки /etc/namedb.<br>
Но при этом говорит, что в качестве working directory можно указать любую другую папку с правами на запись, но при этом придется поплатиться полным переписыванием всех путей и файлов зон на относительный путь. Лично мне это как-то не в кайф :)<br>
Ладно, не буду спорить...<br>
<br>
В указанном источнике к сожалению вообще ничего не сказано, чем же грозит наличие такого сообщения (отсутствие прав на запись в рабочей папке). <strong class='tag-b'>Что именно</strong> bind хочет туда записать, но не может? А вдруг это что-то важное?&#33;]]></description>
        <author>vot</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296399</guid>
        <pubDate>Tue, 23 Jun 2009 07:41:18 +0000</pubDate>
        <title>FreeBSD: named: the working directory is not writable</title>
        <link>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296399</link>
        <description><![CDATA[negram: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=275706&view=findpost&p=2296383'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>vot &#064; <time class="tag-quote__quoted-time" datetime="2009-06-23T07:25:28+00:00">23.06.09, 07:25</time></span><div class='quote '>Насколько я понял, там нет такого предложения &quot;ничего не делать&quot;. </div></div> <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>Which will make the directory writable and susceptible to the attack Mel_Flynn mentioned. Hence it is not recommended.</div></div> т.е. если сделать папку записываемой, будет уязвимость<br>
<br>
во-вторых, там как раз написано, что на записываемость он проверяет папку, указанную опцией directory. Её монжо и поменять.<br>
<br>
и ещё один метод, который уже ближе к хаку...]]></description>
        <author>negram</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296383</guid>
        <pubDate>Tue, 23 Jun 2009 07:25:28 +0000</pubDate>
        <title>FreeBSD: named: the working directory is not writable</title>
        <link>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296383</link>
        <description><![CDATA[vot: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=275706&view=findpost&p=2296369'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>negram &#064; <time class="tag-quote__quoted-time" datetime="2009-06-23T07:09:33+00:00">23.06.09, 07:09</time></span><div class='quote '>http://forums.freebsd.org/showthread.php?t=1920<br>
Если я правильно понял, там советуют так и оставить... Реально что-то не работает? </div></div><br>
Это я читал одним из первых.<br>
Насколько я понял, там нет такого предложения &quot;ничего не делать&quot;. А вот про &quot;что делать&quot;, там как раз почти ничего и не сказано :)<br>
В принципе, всё _вроде_бы_ работает. <br>
Просто смущает, что в логи ошибка пишется, как-то непривычно мне это, привык к &quot;чистоте&quot; :)]]></description>
        <author>vot</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296369</guid>
        <pubDate>Tue, 23 Jun 2009 07:09:33 +0000</pubDate>
        <title>FreeBSD: named: the working directory is not writable</title>
        <link>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296369</link>
        <description><![CDATA[negram: http://forums.freebsd.org/showthread.php?t=1920<br>Если я правильно понял, там советуют так и оставить... Реально что-то не работает?]]></description>
        <author>negram</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296340</guid>
        <pubDate>Tue, 23 Jun 2009 06:43:06 +0000</pubDate>
        <title>FreeBSD: named: the working directory is not writable</title>
        <link>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296340</link>
        <description><![CDATA[vot: Дык я ж сказал, что он САМ при запуске поменял владельца папки&#33;<br>Сообщил, и сменил bind(53) на root(0).<br>Т.е. стало как было раньше.]]></description>
        <author>vot</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296337</guid>
        <pubDate>Tue, 23 Jun 2009 06:39:59 +0000</pubDate>
        <title>FreeBSD: named: the working directory is not writable</title>
        <link>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296337</link>
        <description><![CDATA[negram: * глядя на права нашего бинда* А если не делать <br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=275706&view=findpost&p=2296303'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>vot &#064; <time class="tag-quote__quoted-time" datetime="2009-06-23T05:56:37+00:00">23.06.09, 05:56</time></span><div class='quote '>На всякий пожарный сделал chown bind:wheel /var/named .</div></div> та же фихня?]]></description>
        <author>negram</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296303</guid>
        <pubDate>Tue, 23 Jun 2009 05:56:37 +0000</pubDate>
        <title>FreeBSD: named: the working directory is not writable</title>
        <link>https://forum.sources.ru/index.php?showtopic=275706&amp;view=findpost&amp;p=2296303</link>
        <description><![CDATA[vot: Установлена свеженькая система FreeBSD 7.2-RELEASE.<br>
Версия нэйм-сервера: BIND 9.4.3-P2<br>
Вижу в логах (/var/log/messages) ошибку:<br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>named[522]: starting BIND 9.4.3-P2 -t /var/named -u bind<br>
named[522]: command channel listening on 127.0.0.1#953<br>
named[522]: command channel listening on ::1#953<br>
named[522]: the working directory is not writable<br>
named[522]: running</div></div><br>
<br>
После команды <strong class='tag-b'>rndc reload</strong> в /var/log/messages выдает ошибку:<br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>named[522]: the working directory is not writable</div></div><br>
<br>
Погуглил. <br>
Узнал, что в 2008 году в BIND были внесены изменения,<br>
в результате которых у всех массово полезла эта ошибка.<br>
Предлагалось следующее решение (поменять права):<br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '># cd /etc/namedb/<br>
# chown -R bind:wheel *<br>
# chmod -R g+w *<br>
# chmod -R g+r *<br>
# chmod 0600 rndc.key</div></div><br>
Применил. <br>
На всякий пожарный сделал chown bind:wheel /var/named .<br>
Рестартовал named.<br>
Получил в ответ ругательство, что, мол какой-то идиот поменял владельца с рута на бинд, и поэтому автоматом всё снова отдается руту. <br>
Кроме того, права 775 тоже демону не понравились, он хочет 755.<br>
Итог - bind не запустился.<br>
Вернул права 755. Перезапустил.<br>
Итог - все вернулось на круги своя, т.е. опять ругательства, что the working directory is not writable.<br>
<br>
Как избавиться от этого ругательства?]]></description>
        <author>vot</author>
        <category>*nix</category>
      </item>
	
      </channel>
      </rss>
	