Page 1 of 2

How to fix the permission denied error ?

Posted: Sat Oct 17, 2015 6:55 pm
by nelsonwan
How to fix the permission denied error ?

ubuntu 14.04 lts

Oct 18 02:09:34 www named[29361]: zone mydomain.com/IN: loading from master file /home/mydomain/conf/dns/mydomain.com.db failed: permission denied
Oct 18 02:09:34 www named[29361]: zone mydomain.com/IN: not loaded due to errors.

Re: How to fix the permission denied error ?

Posted: Sat Oct 17, 2015 7:48 pm
by SCelik
What is the output of:
ls -la /home/mydomain/conf/dns/

Re: How to fix the permission denied error ?

Posted: Sat Oct 17, 2015 8:02 pm
by nelsonwan
root@www:/# ls -la /home/mydomain/conf/dns
total 12
drwxr-x--x 2 root root 4096 Oct 18 03:56 .
drwxr-xr-x 5 root root 4096 Oct 18 03:55 ..
-rw-r----- 1 root bind 642 Oct 18 03:56 mydomain.com.db
root@www:/#

Re: How to fix the permission denied error ?

Posted: Sat Oct 17, 2015 9:20 pm
by SCelik
I think Bind service not run under "bind" user can you

Code: Select all

chmod 0777/home/mydomain/conf/dns/mydomain.com.db
and try to restart dns service?

if it runs then time to look at bind service user...

Re: How to fix the permission denied error ?

Posted: Sat Oct 17, 2015 9:40 pm
by nelsonwan
problem same............

Re: How to fix the permission denied error ?

Posted: Tue Oct 20, 2015 4:44 pm
by nelsonwan
No any idea ??

Re: How to fix the permission denied error ?

Posted: Sat Oct 24, 2015 11:25 am
by mike08
Have you change the user that bind runs on? By default it should run under root.

Re: How to fix the permission denied error ?

Posted: Sat Oct 24, 2015 3:08 pm
by nelsonwan
Pls help me , how to do?

Re: How to fix the permission denied error ?

Posted: Sat Oct 24, 2015 3:41 pm
by mike08
Hmm, let's see, try to run:

Code: Select all

ps aux | grep bind
The output should look something like:

Code: Select all

bind      1676  0.0  0.1 213056 13048 ?        Ssl  Oct15   0:32 /usr/sbin/named -u bind

Re: How to fix the permission denied error ?

Posted: Sat Oct 24, 2015 5:03 pm
by nelsonwan
mike08 wrote:Hmm, let's see, try to run:

Code: Select all

ps aux | grep bind
The output should look something like:

Code: Select all

bind      1676  0.0  0.1 213056 13048 ?        Ssl  Oct15   0:32 /usr/sbin/named -u bind

Yes, i can see this

Code: Select all

/usr/sbin/named -u bind