SunQuest
           DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old November 9th, 2001, 11:42 AM
ericparker ericparker is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 27 ericparker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
problem starting Bind on redhat server

When I start named on my Redhat server its starts fine and loads named.conf but then I get an error :
'couldn't open pid file '/var/run/named/named.pid': Permission denied'
is there something obvious I should check?

here is the messages log :

1)starting BIND 9.1.3
2)using 1 CPU
3)loading configuration from '/etc/named.conf'
4)the default for the 'auth-nxdomain' option is now 'no'
5)no IPv6 interfaces found
6)listening on IPv4 interface lo, 127.0.0.1#53
7)listening on IPv4 interface eth0, 216.174.XXX.XXX#53
8)command channel listening on 127.0.0.1#953
9)couldn't open pid file '/var/run/named/named.pid': Permission denied
10)exiting (due to early fatal error)

Thank you,
Eric

Reply With Quote
  #2  
Old November 9th, 2001, 04:41 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
First off, i don't know the syntax when it comes to BIND 9.

>> 'couldn't open pid file '/var/run/named/named.pid'

What did you put in named.conf? In BIND 8, you can add pid-file "/path/to/named.pid"; within options {};.

Keep in mind, when BIND starts up, it will create the named.pid file automatically, but if your named.pid should be located in a directory that's non-existence, BIND won't mkdir it for you. That said, check and see if there is named directory in /var/run. BTW, the pid file (in non-chroot environment) should be /var/run/named.pid.

Reply With Quote
  #3  
Old November 12th, 2001, 02:25 PM
optimised optimised is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 10 optimised User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
9)couldn't open pid file '/var/run/named/named.pid': Permission denied

Have you:
Checked permission setting on your named folder...

Reply With Quote
  #4  
Old November 28th, 2003, 04:54 PM
Unix-like Unix-like is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 5 Unix-like User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have the same error. The permissions for my /var/run/named directory are
Code:
drwxr-xr-x    2 named    named        4096 Nov 28 17:56 named


I'm wondering if named is running as some other user than named by default. I'd appreciate hearing from anyone who's gotten past this issue.

Last edited by Unix-like : November 28th, 2003 at 04:57 PM.

Reply With Quote
  #5  
Old November 28th, 2003, 04:59 PM
Unix-like Unix-like is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 5 Unix-like User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Okay, running the "named -u named" command seems to have gotten me past this issue. I guess it was trying to run as root. Though if it was running as root, I don't see why permission was denied to the directory. But I'm kinda' new to Unix file permissions, so I'm sure it's something I missed.

Dave

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > problem starting Bind on redhat server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway