dhcp3-client not setting right permissions on /var/lib/dhcp3

Bug #204379 reported by joseche
4
Affects Status Importance Assigned to Milestone
dhcp3 (Ubuntu)
Invalid
Undecided
Ralph Janke

Bug Description

Binary package hint: dhcp3-client

the directory:
  /var/lib/dhcp3
is owned by root but the client-daemon running with the user dhcp tries to write the leases there.

I am using 7.10 server

Revision history for this message
Ralph Janke (txwikinger) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

However, I don't believe the behaviour described is wrong. the dhcp-client is run during the initalisation of the network interface, which should/can only be run as root (or indirectly as root with sudo). Therefore, the permission will always allow the writing of the lease.

If the lease cannot been written, please provide the error messages. You probably can find them in the file "/var/log/messages".

I would like to close this report if there are no objections.

Changed in dhcp3:
assignee: nobody → txwikinger
status: New → Incomplete
Revision history for this message
joseche (joseche) wrote :

The daemon.log was showing:

Mar 19 07:16:11 dante dhclient: DHCPACK from 192.168.1.1
Mar 19 07:16:11 dante dhclient: can't create /var/lib/dhcp3/dhclient.eth0.leases: Permission denied
Mar 19 07:16:11 dante dhclient: bound to 192.168.1.101 -- renewal in 3093 seconds.
Mar 19 08:07:44 dante dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Mar 19 08:07:44 dante dhclient: DHCPACK from 192.168.1.1
Mar 19 08:07:44 dante dhclient: can't create /var/lib/dhcp3/dhclient.eth0.leases: Permission denied
Mar 19 08:07:44 dante dhclient: bound to 192.168.1.101 -- renewal in 3450 seconds.
Mar 19 09:05:14 dante dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Mar 19 09:05:14 dante dhclient: DHCPACK from 192.168.1.1
Mar 19 09:05:14 dante dhclient: can't create /var/lib/dhcp3/dhclient.eth0.leases: Permission denied
Mar 19 09:05:14 dante dhclient: bound to 192.168.1.101 -- renewal in 2800 seconds.
Mar 19 09:51:54 dante dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Mar 19 09:51:54 dante dhclient: DHCPACK from 192.168.1.1
Mar 19 09:51:54 dante dhclient: can't create /var/lib/dhcp3/dhclient.eth0.leases: Permission denied
Mar 19 09:51:54 dante dhclient: bound to 192.168.1.101 -- renewal in 2832 seconds.
Mar 19 10:39:06 dante dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67

You may be right, during the initialization it runs as root, but remember that the leases are updated according to the dhcpd settings.
In this case it is an hour as you can see.

Revision history for this message
Ralph Janke (txwikinger) wrote :

What is the output of

ls -l /var/lib/dhcp3/

Thanks

Revision history for this message
joseche (joseche) wrote : Re: [Bug 204379] Re: dhcp3-client not setting right permissions on /var/lib/dhcp3

jose@dante:~$ ls -l /var/lib/dhcp3/
total 8
-rw-r--r-- 1 dhcp dhcp 5190 2008-03-24 21:00 dhclient.eth0.leases
-rw-r--r-- 1 dhcp root 0 2008-03-13 17:54 dhclient.leases
jose@dante:~$

2008/3/24, Ralph Janke <email address hidden>:
> What is the output of
>
> ls -l /var/lib/dhcp3/
>
> Thanks
>
>
> --
> dhcp3-client not setting right permissions on /var/lib/dhcp3
> https://bugs.launchpad.net/bugs/204379
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
"Cogito ergo I'm right and you're wrong."
                -- Blair Houghton

Revision history for this message
Ralph Janke (txwikinger) wrote :

Is this the way the permissions are set when you get the permission errors?

Revision history for this message
joseche (joseche) wrote :

Forget it !

2008/3/30, Ralph Janke <email address hidden>:
> Is this the way the permissions are set when you get the permission
> errors?
>
>
> --
>
> dhcp3-client not setting right permissions on /var/lib/dhcp3
> https://bugs.launchpad.net/bugs/204379
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
"Cogito ergo I'm right and you're wrong."
                -- Blair Houghton

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 204379] Re: dhcp3-client not setting right permissions on /var/lib/dhcp3

On Sun, Mar 30, 2008 at 10:58:42AM -0000, joseche wrote:
> Forget it !

Do you still have this problem or has it been solved now ?

--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com

Revision history for this message
joseche (joseche) wrote : Re: [Bug 204379] Re: dhcp3-client not setting right permissions on /var/lib/dhcp3

I've solved the problem from the first day, I just wanted to give you
the input on it because that was a standard installation of a package,
but I am tired of following on it by now.

Thanks.

2008/4/1, Mathias Gug <email address hidden>:
>
> On Sun, Mar 30, 2008 at 10:58:42AM -0000, joseche wrote:
> > Forget it !
>
> Do you still have this problem or has it been solved now ?
>
> --
> Mathias Gug
> Ubuntu Developer http://www.ubuntu.com
>
>
> --
>
> dhcp3-client not setting right permissions on /var/lib/dhcp3
> https://bugs.launchpad.net/bugs/204379
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
"Cogito ergo I'm right and you're wrong."
                -- Blair Houghton

Revision history for this message
Ralph Janke (txwikinger) wrote :

Thanks

Changed in dhcp3:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.