<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Andale Mono; font-size: 10pt; color: #000000'>I see why.  The server is trying to open <span style="font-family: Verdana; font-size: small; ">/tmp/dhcpd/dhcpd.leases but you said you copied to </span><span style="font-family: Verdana; font-size: small; "> /tmp/dhcpd.leases  mkdir /tmp/dhcpd; cp /tmp/dhcpd.leases /tmp/dhcpd/; should do the trick.</span><br><br><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"18905913309" <18905913309@189.cn><br><b>To: </b>"dhcp-users" <dhcp-users@lists.isc.org><br><b>Sent: </b>Tuesday, April 3, 2012 2:27:10 AM<br><b>Subject: </b>Can't open lease database /tmp/dhcpd/dhcpd.leases: Permission denied        --<br><br>




<div><font face="Verdana" size="2">
<div><font face="Verdana" size="2">hi,friends:</font></div>
<div> </div>
<div>i encounter a strange things,</div>
<div>when i try to move dhcpd.leases file from default path to a customed 
path,</div>
<div>after system boot,the dhcpd daemon can not 
start, message like that:</div>
<div>   </div>
<div>   Can't open lease database /tmp/dhcpd/dhcpd.leases: Permission denied -- 
</div>
<div> </div>
<div>my OS is redhat enterprise linux 6.1, dhcpd version is 4.2.3;</div>
<div>the following is my operation step:</div>
<div> </div>
<div>i stopped the dhcpd service autostart,and add the following line to 
/etc/rc.local:</div>
<div>   cp /var/lib/dhcpd/dhcpd.leases /tmp/dhcpd.leases</div>
<div><font face="Verdana" size="2">   /sbin/dhcpd -lf 
/tmp/dhcpd.leases</font></div>
<div> </div>
<div>then,i reboot system,but dhcpd didnt start.</div>
<div>i found a messages in system log files:</div>
<div>     
Can't open lease database /tmp/dhcpd/dhcpd.leases: Permission denied -- 
</div>
<div> </div>
<div>but if i run the two lines by manual,it can work.</div>
<div> </div>
<div>#  cp /var/lib/dhcpd/dhcpd.leases /tmp/dhcpd.leases</div>
<div># /sbin/dhcpd -lf /tmp/dhcpd.leases</div>
<div> </div>
<div>why?</div></font></div>
<div><font face="Verdana" size="2"></font> </div>
<div align="left"><font face="Verdana" color="#c0c0c0" size="2">2012-04-03 
</font></div><font face="Verdana" size="2">
<hr style="WIDTH: 122px; HEIGHT: 2px" align="left" size="2">

<div><font face="Verdana" color="#c0c0c0" size="2"><span>18905913309</span> 
</font></div></font>
<br>_______________________________________________<br>dhcp-users mailing list<br>dhcp-users@lists.isc.org<br>https://lists.isc.org/mailman/listinfo/dhcp-users</blockquote><br></div></body></html>