How to fix the permission denied error ?
How to fix the permission denied error ?
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.
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 ?
What is the output of:
ls -la /home/mydomain/conf/dns/
Re: How to fix the permission denied error ?
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:/#
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 ?
I think Bind service not run under "bind" user can you and try to restart dns service?
if it runs then time to look at bind service user...
Code: Select all
chmod 0777/home/mydomain/conf/dns/mydomain.com.db
if it runs then time to look at bind service user...
Re: How to fix the permission denied error ?
problem same............
Re: How to fix the permission denied error ?
No any idea ??
Re: How to fix the permission denied error ?
Have you change the user that bind runs on? By default it should run under root.
Re: How to fix the permission denied error ?
Pls help me , how to do?
Re: How to fix the permission denied error ?
Hmm, let's see, try to run:
The output should look something like:
Code: Select all
ps aux | grep bind
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 ?
mike08 wrote:Hmm, let's see, try to run:
The output should look something like:Code: Select all
ps aux | grep bind
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