LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-04-2009, 02:17 PM   #1
Latitude
Member
 
Registered: Mar 2009
Posts: 65

Rep: Reputation: 16
DHCP on CentOS 4.7 - /var/lib/dhcp/dhcpd.leases: Permission denied


After installing DHCP Server V3.0.1 I created the blank file /var/lib/dhcp/dhcpd.leases and read the man page man dhcpd.leases. When giving the command
Quote:
service dhcpd start
, I get the message [FAILED]
Quote:
Can't open lease database /var/lib/dhcp/dhcpd.leases: Permission denied -- check for failed database rewrite attempt!
Still after reading the dhcpd.leases man page (as it says you should do if you don't know what to do about this), there are no clear hints on what to do when this error occurs. With no ideas on what to fix, I also looked at the file permissions for the file and confirmed that the root user has rw (read and write permission) and all others have r(read). Can you help? Thank you.
 
Old 06-05-2009, 02:08 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
It looks like a SELinux problem. Maybe this could be helpful.

Regards
 
  


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
phpdhcpd - View DHCP Leases firefly2442 Linux - Server 0 09-21-2008 11:41 PM
4 node cluster not accepting DHCP leases. CentOS 5 cchristm Linux - Server 2 08-11-2008 12:42 PM
DHCP SERVER ... no free leases!!!!! eder_michael11 Linux - General 2 04-25-2006 05:47 PM
dhcp not writing leases oberon-ken-obi Linux - Newbie 8 04-14-2005 01:44 PM
DHCP leases file not being generated. abhijeetudas Linux - Networking 1 09-25-2004 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:30 PM.

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
Open Source Consulting | Domain Registration