<div dir="ltr">John,<div>        You should see if your full root on the box what permissions named has as a group and what the (bind/named) user has. If your running some restricting permissions via the sudoers you may need to lighten up to 775 from the chroot'd directory down giving the ownership the named group and named user. If the process does start and the permissions aren't right you will run into more errors like zone transfer fails and other things that require the process group and user to right into the directories where the zone files are stored. Just a thought but you may want to look into it.</div>
<div><br></div><div>Regards,</div><div>Ed</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 27, 2013 at 2:38 PM,  <span dir="ltr"><<a href="mailto:johnh@primebuchholz.com" target="_blank">johnh@primebuchholz.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings,<br>
<br>
I'm upgrading my bind installation on one of my hosts, and everything<br>
seems to be working properly although I'm getting a permissions<br>
error/warning in the log on startup:<br>
<br>
Aug 27 14:24:45 flotsam named[13746]: Required root permissions to open<br>
'/var/run/named.pid'.<br>
Aug 27 14:24:45 flotsam named[13746]: Please check file and directory<br>
permissions or reconfigure the filename.<br>
Aug 27 14:24:45 flotsam named[13746]: Required root permissions to open<br>
'/var/run/named/session.key'.<br>
Aug 27 14:24:45 flotsam named[13746]: Please check file and directory<br>
permissions or reconfigure the filename.<br>
Aug 27 14:24:45 flotsam named[13746]: command channel listening on<br>
127.0.0.1#953<br>
Aug 27 14:24:45 flotsam named[13746]: the working directory is not<br>
writable<br>
Aug 27 14:24:45 flotsam named[13746]: all zones loaded<br>
<br>
This is in a chroot environment, and I'm starting a static-linked copy of<br>
named like this: /var/named/usr/sbin/named -t /var/named -u named.<br>
<br>
The permissions on the tree in questions are:<br>
<br>
/var/named/var:<br>
<br>
drwxrwx---  3 root  named  512 Aug 27 14:25 run<br>
<br>
/var/named/var/run:<br>
<br>
drwxrwx---  2 root  named  512 Aug 27 14:25 named<br>
<br>
After named starts, it creates /var/named/var/run/named.pid and<br>
/var/named/var/run/named/session.key with the following permissions:<br>
<br>
-rw-r--r--  1 root  named    6 Aug 27 14:35 named.pid<br>
<br>
-rw-------  1 root  named  102 Aug 27 14:35 session.key<br>
<br>
What I am I missing here?  /var/named/var/run and /var/named/var/run/named<br>
have group write permissions, so it seems it *shouldn't* be complaining,<br>
and the resulting files should've been owned by named, shouldn't they?<br>
<br>
Thanks,<br>
<br>
-John<br>
<br>
--<br>
        Please consider the environment before printing this e-mail.<br>
<br>
        This e-mail is intended only for the named person or entity to which it<br>
        is addressed and contains valuable business information that is<br>
        privileged, confidential and/or otherwise protected from disclosure.<br>
        Dissemination, distribution or copying of this e-mail or the information<br>
        herein by anyone other than the intended recipient, or an employee, or<br>
        agent responsible for delivering the message to the intended recipient,<br>
        is strictly prohibited.  All contents are the copyright property of the<br>
        sender.  If you are not the intended recipient, you are nevertheless<br>
        bound to respect the sender's worldwide legal rights.  We require that<br>
        unintended recipients delete the e-mail and destroy all electronic<br>
        copies in their system, retaining no copies in any media.  If you have<br>
        received this e-mail in error, please immediately notify us by calling<br>
        our Help Desk at (603) 433-1143, or e-mail to <a href="mailto:it@primebuchholz.com">it@primebuchholz.com</a>.<br>
        We appreciate your cooperation.<br>
<br>
_______________________________________________<br>
Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote></div><br></div>