Networking Forums

Networking Forums > Computer Networking > Linux Networking > Permission denied when creating DNS journal entries...

Reply
Thread Tools Display Modes

Permission denied when creating DNS journal entries...

 
 
Pradeep
Guest
Posts: n/a

 
      08-13-2006, 09:22 AM

Hi,

In our setup, DHCP is served by our Linksys router. I am trying to
configure a Fedora box (hostname einstein) to act as a DNS server.

It appears the DNS functionality is working okay. Other computers on
the network can point to this Fedora machine as the DNS server and are
able to resolve dns names.

What is not working is the dynamic update of DNS records.

To test the setup, I run "ipconfig /renew" from a Windows client
(hostname newton). Here are the entries from /var/log/messages:

Aug 13 02:36:15 einstein named[2505]: client 192.168.15.108#1256:
updating zone 'mycompany.com/IN': deleting rrset at
'newton.mycompany.com' A
Aug 13 02:36:15 einstein named[2505]: client 192.168.15.108#1256:
updating zone mycompany.com/IN': adding an RR at 'newton.mycompany.com'
A
Aug 13 02:36:15 einstein named[2505]: journal file mycompany.zone.jnl
does not exist, creating it
Aug 13 02:36:15 einstein named[2505]: mycompany.zone.jnl: create:
permission denied
Aug 13 02:36:15 einstein named[2505]: client 192.168.15.108#1256:
updating zone 'mycompany.com/IN': error: journal open failed:
unexpected error

I tried the following commands:
chown named:named /var/named
chown named:named /var/named/*
chmod 777 /var/named
chmod 777 /var/named/*

However, the problem still does not go away.

I also tried the following but it doesn't work:
chown root:root /var/named
chown root:root /var/named/*
chmod 777 /var/named
chmod 777 /var/named/*

Can someone please tell me what am I missing?

Thank you in advance for your help.

Pradeep

 
Reply With Quote
 
 
 
 
Pradeep
Guest
Posts: n/a

 
      08-15-2006, 09:57 PM
Can anyone please help me? I haven't been able to figure out what to
do.

Thank you in advance for your help.

Pradeep

 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      08-16-2006, 03:38 PM
Pradeep <(E-Mail Removed)> wrote:
> Can anyone please help me? I haven't been able to figure out what to
> do.


Do what? Ah, I see; you've put your question the subject.
==> Subject: Re: Permission denied when creating DNS journal entries...

It's always worth putting a subject (summary line, if you will) in
the subject, and stating your question in some detail in the body of
your message.

The journal directory needs to be writable. To get much more detail than
that and you'll have to post some detail yourself. For example, what
/exactly/ you're trying to do, and how you're doing it (maybe which HOWTO
you're following), etc. Oh, and a precise error message would help, too.

Chris
 
Reply With Quote
 
Postmaster
Guest
Posts: n/a

 
      08-16-2006, 06:05 PM

"Pradeep" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Can anyone please help me? I haven't been able to figure out what to
> do.
>
> Thank you in advance for your help.
>
> Pradeep
>


Pradeep,

Find where your system has the zone files.
(Perhaps /var/named/chroot/var/named ? )

Example of zone files:

10.0.0
home.org

Now, simply create the journal files like this:
touch 10.0.0.jnl
touch home.org.jnl

chown named 10.0.0.jnl
chown named home.org.jnl

chmod 660 *.jnl

Now restart the DNS daemon:
service named stop
service named start

Enjoy,
Postmaster


 
Reply With Quote
 
Pradeep
Guest
Posts: n/a

 
      08-21-2006, 03:30 AM
Postmaster,

Thank you for your help.

After reading "named" documentation to the end, I discovered a blurb on
SELinux and how it prevents updating /var/named directory by default.
Disabling SELinux solved my problem. As this machine is solely used for
internal DNS and is not exposed to extranet, I guess it is okay to
disable SELinux.

Regards,
Pradeep

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nfs gives permission denied pranay.tembhekar@gmail.com Linux Networking 1 05-17-2006 12:25 AM
Workgroup Permission Denied (Usually) Bob Ryan Wireless Networks 1 10-23-2005 10:10 PM
Permission Denied? JBecht Windows Networking 0 10-03-2005 03:25 PM
root rsh permission denied - solution Don S Linux Networking 2 10-03-2003 05:47 PM
Network permission is denied? Tim Walsh Windows Networking 1 09-22-2003 02:33 PM



1 2 3 4 5 6 7 8 9 10 11