dhclient prevents itself from accessing its own leases file
Bug #26645 reported by
David Riebenbauer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Fix Released
|
Medium
|
Unassigned | ||
dhcp3 (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
I have my eth0 in /etc/network/
dhcp. This results in dhclient to be tun as root.
Ubuntu's version of dhcp3-client apparently has a patch applied that changes the
user and group to dhcp:dhcp after the lease has been obtained and the leases file
has been written. Unfortunatly dhclient will not be able to update the leases file
when the lease is refreshed, because only root has the right to do that and dhclient
has droppped it's privileges.
As a result the message:
"localhost dhclient: can't create /var/run/
+Permission denied" appears in syslog and the leases file is not rewritten
To post a comment you must log in.
Created an attachment (id=5200)
dpatch to fix wrong permisions of leases file
this patch chowns the leases file before dhclient drops it's privileges