rndc stats - permission denied

Baird, Josh jbaird at follett.com
Thu Jul 10 16:17:42 UTC 2008


The location that you specified for the stats file in named.conf
probably has incorrect permissions (or the parent directory).  The
file/directory needs to be writeable by the user that is running
"named."

Josh

-----Original Message-----
From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
Behalf Of Jeff Lightner
Sent: Thursday, July 10, 2008 11:13 AM
To: bind-users at isc.org
Subject: rndc stats - permission denied

All other rndc commands I run work fine but I keep getting permission
denied when attempting rndc stats.
There was no statistics file define in named.conf so after doing some
reading and Googling I added a line to have a named.stats in /var/run.

This is a chrooted environment so I figured the file would be in
<chrootdir>/var/run but it wasn't.   

I attempted to create a file there and make the user that runs named the
owner and insure it was readable/writable.

On restarting named I have no errors but I still get the error on rndc
stats.

Can someone offer some advice.  Most of my Google searches basically
result in "add the entry to named.conf, make sure permissions are same
as user that runs named" which isn't really helpful given that I've
already done that.   

Why would I get permission denied if the file doesn't exist as appeared
to be the case when I started?   It makes it seem the file exists and
has the wrong permissions but if so where would it be?
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or
confidential information and is for the sole use of the intended
recipient(s). If you are not the intended recipient, any disclosure,
copying, distribution, or use of the contents of this information is
prohibited and may be unlawful. If you have received this electronic
transmission in error, please reply immediately to the sender that you
have received the message in error, and delete it. Thank you.
----------------------------------




More information about the bind-users mailing list