[Bug 1186662] Re: isc-dhcp-server fails to renew lease file
Ian McMichael
1186662 at bugs.launchpad.net
Thu Jun 19 16:10:44 UTC 2014
Rather annoyingly, this still seems to be present in 14.04 LTS after all
these years! The following seems to fix it (at least until the isc-
dhcp-server package gets updated):
- Stop the DHCP server (service isc-dhcp-server stop)
- chown -R dhcpd:dhcpd /var/lib/dhcp
- Edit /etc/init/isc-dhcp-server.conf and remove (or comment out) the following section from near the end:
# The leases files need to be root:root even when dropping privileges
[ -e /var/lib/dhcp/dhcpd.leases ] || touch /var/lib/dhcp/dhcpd.leases
chown root:root /var/lib/dhcp /var/lib/dhcp/dhcpd.leases
if [ -e /var/lib/dhcp/dhcpd.leases~ ]; then
chown root:root /var/lib/dhcp/dhcpd.leases~
fi
- Edit /etc/apparmor.d/local/usr.sbin.dhcpd and add:
# Allow lease file updates
capability dac_override,
- Reload AppArmor profiles (service apparmor reload)
- Restart DHCPd (service isc-dhcp-server start)
Hopefully everything will work now. Why can these changes not be made
in the official package?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1186662
Title:
isc-dhcp-server fails to renew lease file
Status in “isc-dhcp” package in Ubuntu:
Triaged
Bug description:
After raring upgrade, the dhcp server fails to renew lease file when
it tries to (about every hour).
The syslog says:
dhcpd: Can't create new lease file: Permission denied
It looks like a permission problem, because
# chown -R dhcpd:dhcpd /var/lib/dhcp
the above command temporarily solves the issue, until dhcpd is
restarted: at that time, the ownership of the directory and the lease
file is set back to root:root.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1186662/+subscriptions
More information about the foundations-bugs
mailing list