Results 1 to 3 of 3

Thread: BIND9 custom logs permission denied

  1. #1
    Join Date
    May 2007
    Beans
    25

    BIND9 custom logs permission denied

    hi those how dig bind,

    i was just trying to setup some custom logging for my BIND9 and failed:

    Code:
    May 29 17:28:33 blast named[10924]: logging channel 'query' file '/var/log/query.log': permission denied
    permissions on log file is:
    Code:
     -rw-r--r-- 1 bind root 0 2008-05-29 17:26 query.log
    according to https://help.ubuntu.com/community/BI...040e1fcb9ea535 it supposed to work.

    i tried also setting log directory as /tmp - same result.
    i'm on 8.04 x32, BIND 9.4.2

    any clues?

    somewhat feels like a similar issue with SElinux: http://www.isc.org/index.pl?/sw/bind/FAQ.php (search for "custom logs")
    Last edited by binary.koala; May 29th, 2008 at 04:39 PM. Reason: selinux

  2. #2
    Join Date
    Oct 2008
    Beans
    1

    Re: BIND9 custom logs permission denied

    I had the same problem today. It was "AppArmor" which is like SE Linux. You need to edit /etc/apparmor.d/usr.sbin.named and give it permissions to write to the directory where your log file is.

    Mine looks like:

    /var/log/dns/** rw,

    Restart apparmor and then bind and it should work.

  3. #3
    Join Date
    May 2007
    Beans
    25

    Re: BIND9 custom logs permission denied

    right

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •