conffile prompt on latest upgrade in hardy

Bug #201059 reported by James Westby
14
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Fix Released
Undecided
Mathias Gug

Bug Description

Binary package hint: samba

Hi,

Last night I updated my laptop which runs Hardy, and
I was given a conffile prompt for /etc/samba/smb.conf,
which I don't believe I have modified ever.

This was an upgrade done though upgrade-manager.

I am attaching my /var/log/apt/term.log, though I don't
think there is much useful in it. Please let me know
if I can provide any more information.

Thanks,

James

Related branches

Revision history for this message
James Westby (james-w) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Thats because there has been some changes to smb.conf.

Thanks
chuck

Changed in samba:
status: New → Invalid
Revision history for this message
James Westby (james-w) wrote :

Hi,

I'm marking this back to new as I disagree with your
decision. I will do this only once, as I don't want to
start a fight over it.

I did *not*, as far as I know, modify this file, so I should
not have been prompted, I should just get the new
version.

I am going to attach the new file (I chose to overwrite
with the maintainer's version), and the .ucf-old file,
which I believe is my locally "modified" version.

Thanks,

James

Changed in samba:
status: Invalid → New
Revision history for this message
James Westby (james-w) wrote :
Revision history for this message
James Westby (james-w) wrote :
Revision history for this message
Iain Lane (laney) wrote :

Confirming. Saw this earlier today when I dist-upgraded. I haven't ever modified smb.conf

Changed in samba:
status: New → Confirmed
Revision history for this message
Mathias Gug (mathiaz) wrote :

Where you upgrading from gutsy or from hardy ?

The new version of the samba package introduces ucf to manage the smb.conf file. It should handle an upgrade from the default smb.conf from dapper and gutsy.

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 201059] Re: conffile prompt on latest upgrade in hardy

On Tue, 2008-03-11 at 19:32 +0000, Mathias Gug wrote:
> Where you upgrading from gutsy or from hardy ?
>
> The new version of the samba package introduces ucf to manage the
> smb.conf file. It should handle an upgrade from the default smb.conf
> from dapper and gutsy.
>

This was an upgrade from Hardy.

Thanks,

James

Revision history for this message
Steve Langasek (vorlon) wrote :

The issue here is that samba-common has been converted to use ucf for smb.conf management, and this requires a baseline config file to use when first enabling ucf. Templates have been provided for the gutsy and dapper versions of smb.conf, but there have been changes to the smb.conf since gutsy's release which will show up as diffs if you're using an smb.conf that was created from a more recent install of samba.

On the other hand, some bits of the diff (attached) relative to the stock gutsy smb.conf suggest that you might have originally installed a *pre* gutsy version of Samba? Yes, this seems to match the feisty version of the smb.conf file. Unfortunately, while I've tried to provide for the upgrade paths from each of dapper and gutsy, I don't know of a good way to detect that the smb.conf was originally created by an older version of samba than the one being upgraded from.

Revision history for this message
James Westby (james-w) wrote :

Hi,

Sorry, yes, I should have been more precise. This was an
upgrade from within Hardy, but the install was originally
feisty, so that is where the file originated I guess.

Thanks,

James

Revision history for this message
Iain Lane (laney) wrote :

James Westby wrote:
> Hi,
>
> Sorry, yes, I should have been more precise. This was an
> upgrade from within Hardy, but the install was originally
> feisty, so that is where the file originated I guess.
>
> Thanks,
>
> James
>

However I just installed Hardy Alpha 6 (in a VM), and saw this while
dist-upgrading from that.

Revision history for this message
Mathias Gug (mathiaz) wrote :

On Tue, Mar 11, 2008 at 10:45:35PM -0000, Iain Lane wrote:
> However I just installed Hardy Alpha 6 (in a VM), and saw this while
> dist-upgrading from that.

Correct. The latest version of the samba package only knows about the
default smb.conf from dapper and gutsy. All the other configurations will
lead to a prompt when upgrading the samba package to 3.0.28-4ubuntu1.

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

Revision history for this message
Mathias Gug (mathiaz) wrote :

I've attached a debdiff that should fix this issue.

Changed in samba:
milestone: none → ubuntu-8.04
status: Confirmed → In Progress
assignee: nobody → mathiaz
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package samba - 3.0.28a-1ubuntu4

---------------
samba (3.0.28a-1ubuntu4) hardy; urgency=low

  [ Mathias Gug ]
  * debian/samba-common.postinst:
    Fix upgrade from a first installation done with feisty, edgy or dapper.
    (LP: #201059).
  * debian/smb.conf.feisty:
    Add default smb.conf shipped in feisty.

  [ Steve Langasek ]
  * When populating the new sambashare group, it's not an error if the
    user simply doesn't exist; test for this case and let the install
    continue instead of aborting. LP: #206036.

 -- Steve Langasek <email address hidden> Wed, 02 Apr 2008 21:07:11 +0000

Changed in samba:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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