[Bug 1186662] Re: isc-dhcp-server fails to renew lease file
Steve Langasek
steve.langasek at canonical.com
Fri Aug 12 19:11:12 UTC 2016
The /etc/apparmor.d/usr.sbin.dhcpd profile in 16.04 includes the line:
/var/lib/dhcp/dhcpd{,6}.leases* lrw,
So there should be no issue with manipulation of the leases file.
The systemd unit in 16.04 also includes a 'chown' command to ensure the
right ownership of the leases file, so there should be no need for any
dac override.
Are you somehow running an Ubuntu 16.04 system with upstart as the init
instead of systemd? This is what the user in
https://bugs.launchpad.net/ubuntu/+source/isc-
dhcp/+bug/1543794/comments/8 appears to have, and this is not supported.
--
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:
Fix Released
Status in isc-dhcp source package in Trusty:
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