Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


LinkBack Search this Thread
Old 06-04-2009, 02:17 PM   #1
Registered: Mar 2009
Posts: 48

Rep: Reputation: 15
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
service dhcpd start
, I get the message [FAILED]
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
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,773

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



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
Trackbacks are Off
Pingbacks are On
Refbacks are 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

All times are GMT -5. The time now is 02:58 AM.

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