Re: [Bug 1186662] Re: isc-dhcp-server fails to renew lease file

2017-04-30 Thread Paul Henderson
Yes, I share your frustration. However, the workaround to change the
permissions of the /var/lib/dhcp directory to dhcpd:dhcpd is working for
me. We shouldn't need a workaround, but at least there is one available.

On 2017-04-30 06:54, Emmanuel Proust wrote:

> Hi all,
> 
> Soon 4 years and still no fix for this issue !
> 
> I would like to know any suggestion to make this fixed :
> 
> - any Canonical contact to explain that the linux community is used to
> say that Microsoft is very slow to fix bugs...
> 
> - any famous community site to inform ubuntu users that such an issue
> still affects 3 LTS versions (12.04 / 14.04 / 16.04) and it is just a
> shame.
> 
> - ?
> 
> I regret a lot to write such comments but I noticed that nothing
> happens.
> 
> -- 
> You received this bug notification because you are subscribed to the bug
> report.
> 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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1186662

Title:
  isc-dhcp-server fails to renew lease file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1186662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1186662] Re: isc-dhcp-server fails to renew lease file

2016-09-29 Thread Steve Langasek
On Thu, Sep 29, 2016 at 08:46:59PM -, Dominik wrote:

> It seems to me, that the leases file is created as root after startup and
> then the user of the processs changes to dhcp or whatever.

The systemd unit for isc-dhcp-server very explicitly sets the permissions on
/var/lib/dhcp/dhcpd.leases to be writable by the dhcpd process, before it is
ever started.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1186662

Title:
  isc-dhcp-server fails to renew lease file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1186662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1186662] Re: isc-dhcp-server fails to renew lease file

2016-09-29 Thread Dominik
It seems to me, that the leases file is created as root after startup and then 
the user of the processs changes to dhcp or whatever. I have to approve this 
yet.
Kind regards.


> Am 07.09.2016 um 23:46 schrieb Steve Langasek :
> 
> Ok, your 'systemctl show' output matches the default by all relevant
> measures, and the only modified conffile is the expected one (your dhcpd
> config).  So I'm afraid this brings us no closer to understanding why
> this fails for some people and not for others.
> 
> -- 
> You received this bug notification because you are subscribed to the bug
> report.
> 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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1186662

Title:
  isc-dhcp-server fails to renew lease file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1186662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1186662] Re: isc-dhcp-server fails to renew lease file

2016-09-07 Thread Steve Langasek
On Wed, Sep 07, 2016 at 12:45:04PM -, Emsi wrote:
> For the record:
> The proper fix for me was to make sure that /etc/apparmor.d/usr.sbin.dhcpd 
> included
>   capability chown,
> along:
>   capability net_bind_service,
>   capability net_raw,
>   capability setgid,
>   capability setuid,

> For some reason it was not there after upgrade.

This is a conffile belonging to the isc-dhcp-server package.  If this line
was missing, presumably you had a modified /etc/apparmor.d/usr.sbin.dhcpd
file before upgrade, and kept your version on upgrade rather than installing
the version from the new package.  Do you have an
/etc/apparmor.d/usr.sbin.dhcpd.dpkg-dist file alongside it?  You might want
to see what differences there are between those two files, and replace your
modified profile with the stock one so that you don't run into upgrade
problems in the future.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1186662

Title:
  isc-dhcp-server fails to renew lease file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1186662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs