LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2007, 01:59 PM   #1
avasystems
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Rep: Reputation: 0
dhcpd


dhcpd stops suddlenly and when you try and start the server you get a message saying that it cannot start because there is a problem wht the dhcpd.leases file.

to restart it again i rename the file and also rename the dhcpd.leases~ file to dhcpd.leases and then the server can restart again.

why is the dhcp server suddlenly stopping?

the version of dhcpd is isc dhcpd version 3.0.1 and it is runnng on white box linux 4.

the lease file is located in \var\lib\dhcpd\
 
Old 04-18-2007, 10:28 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Do your logs indicate anything of why it's stopping? That's where I always look first for errors that might indicate the problem.
 
Old 04-18-2007, 09:50 PM   #3
ljs662_removed
Member
 
Registered: Nov 2006
Posts: 51

Rep: Reputation: 15
?

When you say dhcp is stopping, do you mean the dhcp service running on your router, or are you actually running a dhcp server on a linux box, or do you mean you cannot use dhcp from your linux box.
 
Old 04-21-2007, 12:17 PM   #4
avasystems
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Original Poster
Rep: Reputation: 0
it's a linux box acting as a dhcp, smtp relay and dns server.

this is from the log
dhcpd: Can't open lease database /var/lib/dhcp/dhcpd.leases: Permission denied --

there was also this in the log file
kernel: audit(1176820765.298:0): avc: denied { read } for pid=19672 exe=/usr/sbin/dhcpd name=dhcpd.leases dev=dm-0 ino=7358715 scontext=user_u:system_r:dhcpd_t tcontext=user_ubject_r:dhcp_state_t tclass=file


i also have to network cards on this box would this make a differences?
 
Old 04-21-2007, 12:27 PM   #5
SlackDaemon
Member
 
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222

Rep: Reputation: 30
It seems SElinux is blocking access to your dhcp.leases files. try temporarily
shutting off SElinux with:

setenforce 0

then restart the service. You might have to set the correct context for dhcpd process with the chcon command if you wish to keep SElinux active and run the DHCP. If you opt to turn SElinux off permanently, set it to Disabled in the SElinux configuration file. What distribution are you using by the way? If its a RedHat distro, edit the /etc/sysconfig/selinux file
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 11:32 AM
dhcpd dotcafe Linux - Software 2 03-23-2004 09:47 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 04:58 AM
dhcpd campbellop Linux - Networking 2 06-20-2002 04:14 AM
dhcpd.master or dhcpd.conf rickg Linux - Networking 0 04-11-2002 04:34 PM


All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration