Can't open lease database /dev/shm/dhcpd/dhcpd.leases: Permission denied --

18905913309 18905913309 at 189.cn
Tue Apr 3 06:25:26 UTC 2012


hi,friends:

i encounter a strange things,
when i try to move dhcpd.leases file from default path to a customed path,
after system boot,the dhcpd daemon can not start, message like that:
   
   Can't open lease database /tmp/dhcpd/dhcpd.leases: Permission denied -- 

my OS is redhat enterprise linux 6.1,the following is my operation step:

i stopped the dhcpd service autostart,and add the following line to /etc/rc.local:
   cp /var/lib/dhcpd/dhcpd.leases /tmp/dhcpd.leases
   /sbin/dhcpd -lf /tmp/dhcpd.leases

then,i reboot system,but dhcpd didnt start.
i found a messages in system log files:
     Can't open lease database /tmp/dhcpd/dhcpd.leases: Permission denied -- 

but if i run the two lines by manual,it can work.

#  cp /var/lib/dhcpd/dhcpd.leases /tmp/dhcpd.leases
# /sbin/dhcpd -lf /tmp/dhcpd.leases

why?
2012-04-03 



18905913309 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120403/34a5bdd7/attachment.html>


More information about the dhcp-users mailing list