smbd loses connection on DHCP lease

Bug #435061 reported by muellmaen
This bug affects 4 people
Affects Status Importance Assigned to Milestone
dhcpcd (Ubuntu)
Chuck Short

Bug Description


  Installiert: 2:3.4.0-3ubuntu4
  Kandidat: 2:3.4.0-3ubuntu4
 *** 2:3.4.0-3ubuntu4 0
        500 karmic/main Packages
        100 /var/lib/dpkg/status

  Installiert: 2:3.4.0-3ubuntu4
  Kandidat: 2:3.4.0-3ubuntu4
 *** 2:3.4.0-3ubuntu4 0
        500 karmic/main Packages
        100 /var/lib/dpkg/status


Description: Ubuntu karmic (development branch)
Release: 9.10


On a Karmic server edition a samba server cuts any connection if the dhcp client renews its IP. The shell says in that moment:
Reloading /etc/samba/smb.conf smbd only

a) sambd shout keep connections as long as the server does not receive a different IP
b) the string "Reloading /etc/samba/smb.conf smbd only" should be written to a log and not direct into the shell

Work around: kill dhcp client or extend lease time on DHCP server.

This problem was also mentioned in

muellmaen (muellmaen)
affects: ubuntu → samba (Ubuntu)
Revision history for this message
Chuck Short (zulcss) wrote :

This is caused by a low dhcp relase time. I have fixed up the dhcp script for samba that if the IP address doesnt change then it doesnt restart samba.


Changed in samba (Ubuntu):
status: New → In Progress
Thierry Carrez (ttx)
Changed in samba (Ubuntu):
assignee: nobody → Chuck Short (zulcss)
importance: Undecided → Medium
Revision history for this message
ainawing (ainawing) wrote :

I'm using samba 3.4.0 on ubuntu 9.10

I just looked into "/etc/dhcp3/dhclient-enter-hooks.d/samba" and found that there is a test for value changes, before reconfiguring and restarting samba. There is just the problem, that the old values are never loaded, so of course this test will always fail and the update (and reconnect) will be performed.

Is this file part of samba or part of dhcp3? I would apreciate a corrected version sometime. A little info where to get those old values would help, too.

A little help, how to change the output from tty to log would also be nice.

Thank you,


Thierry Carrez (ttx)
tags: added: bugzapping-target
Chuck Short (zulcss)
affects: samba (Ubuntu) → dhcpcd (Ubuntu)
Changed in dhcpcd (Ubuntu):
status: In Progress → 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.