Click to See Complete Forum and Search --> : bind 9.1 named.pid permision denied


optimised
08-08-2001, 05:53 PM
Hi,
After launching named and checking /usr/log/messages I see the error
couln't open pid file 'var/run/named/named.pid' permission denied.
It's appears as though this file can't be created wjich keeps named from starting.
How can I fix it.

bdl
08-08-2001, 09:07 PM
Usually this is caused by the controlling process not having permission to create a file under that particular directory. So, in this case, verify which user named is running as and see if that user has permission to write to /var/run/named or if indeed, such a directory exists. It might be as simple as doing a 'mkdir /var/run/named' and just setting the perms on the newly created directory. I've not extensively used 9.x but if you take a look at this link (http://www.siliconinc.net/docs/arm/Bv9ARM.7.html) (which I found just by using yahoo), it specifys how to run as a non-root user and adjusting file perms to do so. Also, another consideration, the fact that 'ndc' has been replaced with 'rndc' with different configuration options, etc. If you can post back a little more information on your dns setup, what you've tried to correct the situation so far it would be helpful.