samba.postinst: FHS migration code : rmdir /var/samba

Bug #6954 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
samba (Debian)
Fix Released
Unknown
samba (Ubuntu)
Invalid
High
Unassigned

Bug Description

Automatically imported from Debian bug report #251858 http://bugs.debian.org/251858

Revision history for this message
In , Cosimo Alfarano (kalfa) wrote :

On Mon, May 31, 2004 at 01:50:10PM +0200, <email address hidden> wrote:
> Package: samba
> Version: 3.0.4-2.backports.org.1
> Severity: normal

Version: 3.0.4-5
Distribution: sid

> i have samba shares on separate fs mount in /var/samba
> postinstall script remove directories to /var/lib/samba

I've the same problem, since /var/samba reflects the same idea of
/var/www, it's seems to me the best place where mounting samba volumes
partitions.

Hint:
- look for some files in /var/samba you expect being there before
  moving data to /var/lib/samba/
- write what you're trying to do to the user (he usually is a sysadmin,
  he really cares about it) and let him stop/skip the process
- not move _all_ the files in /var/samba if you're not sure of what it
  contains
- don't try to simply remove dir, check errors (maybe it's a mounting
  point)

Note:
- the current postinst operation may lead to data loss (or leave data in
  a messy state), so I'll modify Severity to grave.

  I don't think the severity change is a problem, since it's really easy
  to fix with some careful file checking, and the current state isn't
  acceptable for a sarge release.

thanks!,
 cosimo.

Revision history for this message
In , Cosimo Alfarano (kalfa) wrote : samba: #251858 from normal to grave severity

severity 251858 grave
thanks

As stated in my reply to bug report: it may leave data of any
samba volume on the server in a unconsistent/messy state.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #251858 http://bugs.debian.org/251858

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <E1BUlIw-0006CL-00@osa>
Date: Mon, 31 May 2004 13:50:10 +0200
From: <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: samba.postinst: FHS migration code : rmdir /var/samba

Package: samba
Version: 3.0.4-2.backports.org.1
Severity: normal

i have samba shares on separate fs mount in /var/samba
postinstall script remove directories to /var/lib/samba

errors:
- script no monit this operation
- script no check space on destination fs (/var/samba 10G, /var 2G)

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux osa 2.4.26-ow1 #1 nie kwi 18 16:17:14 CEST 2004 i686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL

Versions of packages samba depends on:
ii debconf 1.2.35 Debian configuration management sy
ii debconf [debcon 1.2.35 Debian configuration management sy
ii e2fsprogs 1.27-2 The EXT2 file system utilities and
ii e2fsprogs [libc 1.27-2 The EXT2 file system utilities and
ii libacl1 2.2.23-0.backports.org.1 Access control list shared library
ii libc6 2.2.5-11.5 GNU C Library: Shared libraries an
pn libcomerr2 Not found.
ii libcupsys2 1.1.14-5 Common UNIX Printing System(tm) -
ii libkrb53 1.2.4-5woody4 MIT Kerberos runtime libraries
ii libldap2 2.0.23-6.3 OpenLDAP libraries.
ii libpam-modules 0.72-35 Pluggable Authentication Modules f
ii libpam-runtime 0.72-35 Runtime support for the PAM librar
ii libpam0g 0.72-35 Pluggable Authentication Modules l
ii logrotate 3.5.9-8 Log rotation utility
ii netbase 4.07 Basic TCP/IP networking system
ii samba-common 3.0.4-2.backports.org.1 Samba common files used by both th

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 6 Jul 2004 14:18:08 +0200
From: Cosimo Alfarano <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Cc: <email address hidden>
Subject: Re: samba.postinst: FHS migration code : rmdir /var/samba

On Mon, May 31, 2004 at 01:50:10PM +0200, <email address hidden> wrote:
> Package: samba
> Version: 3.0.4-2.backports.org.1
> Severity: normal

Version: 3.0.4-5
Distribution: sid

> i have samba shares on separate fs mount in /var/samba
> postinstall script remove directories to /var/lib/samba

I've the same problem, since /var/samba reflects the same idea of
/var/www, it's seems to me the best place where mounting samba volumes
partitions.

Hint:
- look for some files in /var/samba you expect being there before
  moving data to /var/lib/samba/
- write what you're trying to do to the user (he usually is a sysadmin,
  he really cares about it) and let him stop/skip the process
- not move _all_ the files in /var/samba if you're not sure of what it
  contains
- don't try to simply remove dir, check errors (maybe it's a mounting
  point)

Note:
- the current postinst operation may lead to data loss (or leave data in
  a messy state), so I'll modify Severity to grave.

  I don't think the severity change is a problem, since it's really easy
  to fix with some careful file checking, and the current state isn't
  acceptable for a sarge release.

thanks!,
 cosimo.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 6 Jul 2004 15:03:02 +0200
From: Cosimo Alfarano <email address hidden>
To: <email address hidden>
Subject: samba: #251858 from normal to grave severity

severity 251858 grave
thanks

As stated in my reply to bug report: it may leave data of any
samba volume on the server in a unconsistent/messy state.

Revision history for this message
Matt Zimmerman (mdz) wrote :

Remove myself from all these CCs now that we have the warty-bugs mailing list

Revision history for this message
In , J.H.M. Dassen (Ray) (jdassen) wrote :

tags 251858 + sarge sid
thanks

There is nothing in the report to suggest this issue doesn't affect sarge as
well. As such, there is no reason for it to block transition of sid's samba
to sarge (and thereby blocking the whole cupsys transition).

Ray
--
I'm really not a very nice person. I can say "I don't care" with a straight
face, and really mean it.
 Linus Torvalds on the linux-kernel list

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 8 Jul 2004 08:05:09 +0200
From: "J.H.M. Dassen (Ray)" <email address hidden>
To: <email address hidden>
Subject: Re: samba.postinst: FHS migration code : rmdir /var/samba

tags 251858 + sarge sid
thanks

There is nothing in the report to suggest this issue doesn't affect sarge as
well. As such, there is no reason for it to block transition of sid's samba
to sarge (and thereby blocking the whole cupsys transition).

Ray
--
I'm really not a very nice person. I can say "I don't care" with a straight
face, and really mean it.
 Linus Torvalds on the linux-kernel list

Revision history for this message
In , Colin Watson (cjwatson) wrote :

severity 251858 important
thanks

On Thu, Jul 08, 2004 at 08:05:09AM +0200, J.H.M. Dassen (Ray) wrote:
> tags 251858 + sarge sid
> thanks
>
> There is nothing in the report to suggest this issue doesn't affect
> sarge as well. As such, there is no reason for it to block transition
> of sid's samba to sarge (and thereby blocking the whole cupsys
> transition).

Since the tags above don't do what people sometimes expect, and since
this bug is now the sole problem blocking the cupsys transition in
testing, I'm TEMPORARILY downgrading this bug.

--
Colin Watson [<email address hidden>]

Revision history for this message
In , Eloy Paris (peloy-chapus) wrote : Re: Bug#251858: samba.postinst: FHS migration code : rmdir /var/samba

We have been here before. /var/samba is no place for putting user data
or Samba shares. I am consulting with Vorlon about the best course of
action, but don't be surprised if I just close this bug, as I have done
in the past.

I agree with the severity change, and I wouldn't blink to make it
permanent and not temporarily.

Cheers,

Eloy.-

On Thu, Jul 08, 2004 at 12:35:19PM +0100, Colin Watson wrote:
> severity 251858 important
> thanks
>
> On Thu, Jul 08, 2004 at 08:05:09AM +0200, J.H.M. Dassen (Ray) wrote:
> > tags 251858 + sarge sid
> > thanks
> >
> > There is nothing in the report to suggest this issue doesn't affect
> > sarge as well. As such, there is no reason for it to block transition
> > of sid's samba to sarge (and thereby blocking the whole cupsys
> > transition).
>
> Since the tags above don't do what people sometimes expect, and since
> this bug is now the sole problem blocking the cupsys transition in
> testing, I'm TEMPORARILY downgrading this bug.
>
> --
> Colin Watson [<email address hidden>]
>

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 8 Jul 2004 12:35:19 +0100
From: Colin Watson <email address hidden>
To: <email address hidden>
Cc: <email address hidden>
Subject: Re: samba.postinst: FHS migration code : rmdir /var/samba

severity 251858 important
thanks

On Thu, Jul 08, 2004 at 08:05:09AM +0200, J.H.M. Dassen (Ray) wrote:
> tags 251858 + sarge sid
> thanks
>
> There is nothing in the report to suggest this issue doesn't affect
> sarge as well. As such, there is no reason for it to block transition
> of sid's samba to sarge (and thereby blocking the whole cupsys
> transition).

Since the tags above don't do what people sometimes expect, and since
this bug is now the sole problem blocking the cupsys transition in
testing, I'm TEMPORARILY downgrading this bug.

--
Colin Watson [<email address hidden>]

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 8 Jul 2004 08:38:49 -0400
From: "Eloy A. Paris" <email address hidden>
To: Colin Watson <email address hidden>, <email address hidden>
Subject: Re: Bug#251858: samba.postinst: FHS migration code : rmdir /var/samba

We have been here before. /var/samba is no place for putting user data
or Samba shares. I am consulting with Vorlon about the best course of
action, but don't be surprised if I just close this bug, as I have done
in the past.

I agree with the severity change, and I wouldn't blink to make it
permanent and not temporarily.

Cheers,

Eloy.-

On Thu, Jul 08, 2004 at 12:35:19PM +0100, Colin Watson wrote:
> severity 251858 important
> thanks
>
> On Thu, Jul 08, 2004 at 08:05:09AM +0200, J.H.M. Dassen (Ray) wrote:
> > tags 251858 + sarge sid
> > thanks
> >
> > There is nothing in the report to suggest this issue doesn't affect
> > sarge as well. As such, there is no reason for it to block transition
> > of sid's samba to sarge (and thereby blocking the whole cupsys
> > transition).
>
> Since the tags above don't do what people sometimes expect, and since
> this bug is now the sole problem blocking the cupsys transition in
> testing, I'm TEMPORARILY downgrading this bug.
>
> --
> Colin Watson [<email address hidden>]
>

Revision history for this message
Matt Zimmerman (mdz) wrote :

Increase severity of RC bugs to major, now that we have other, non-RC bugs in
the list

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

I agree with the samba maintainer that /var/samba is not the place where to
mount shares.

Revision history for this message
Matt Zimmerman (mdz) wrote :

This is not a bug; users stomping on the FHS namespace deserve what they get

Revision history for this message
In , Jan Hudec (bulb) wrote : samba: Security update causes malfunction!

Followup-For: Bug #251858
Package: samba
Version: 2.2.3a-14.1
Tags: woody
Severity: grave

This problem affects also the security update for stable debian.
Considering it is used in production environment, it is a huge problem.
Security updates should never ever touch setup.

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux shpek 2.4.26 #2 Thu Apr 29 15:18:53 CEST 2004 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages samba depends on:
ii debconf 1.0.32 Debian configuration management sy
ii libc6 2.2.5-11.5 GNU C Library: Shared libraries an
ii libcupsys2 1.1.14-5woody6 Common UNIX Printing System(tm) -
ii libpam0g 0.72-35 Pluggable Authentication Modules l
ii logrotate 3.5.9-8 Log rotation utility
ii netbase 4.07 Basic TCP/IP networking system
ii samba-common 2.2.3a-14.1 Samba common files used by both th

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 14 Oct 2004 12:30:35 +0200
From: Jan Hudec <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: samba: Security update causes malfunction!

Followup-For: Bug #251858
Package: samba
Version: 2.2.3a-14.1
Tags: woody
Severity: grave

This problem affects also the security update for stable debian.
Considering it is used in production environment, it is a huge problem.
Security updates should never ever touch setup.

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux shpek 2.4.26 #2 Thu Apr 29 15:18:53 CEST 2004 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages samba depends on:
ii debconf 1.0.32 Debian configuration management sy
ii libc6 2.2.5-11.5 GNU C Library: Shared libraries an
ii libcupsys2 1.1.14-5woody6 Common UNIX Printing System(tm) -
ii libpam0g 0.72-35 Pluggable Authentication Modules l
ii logrotate 3.5.9-8 Log rotation utility
ii netbase 4.07 Basic TCP/IP networking system
ii samba-common 2.2.3a-14.1 Samba common files used by both th

Revision history for this message
In , Steve Langasek (vorlon) wrote : Bug#251858: fixed in samba 3.0.7-2
Download full text (5.3 KiB)

Source: samba
Source-Version: 3.0.7-2

We believe that the bug you reported is fixed in the latest version of
samba, which is due to be installed in the Debian FTP archive:

libpam-smbpass_3.0.7-2_i386.deb
  to pool/main/s/samba/libpam-smbpass_3.0.7-2_i386.deb
libsmbclient-dev_3.0.7-2_i386.deb
  to pool/main/s/samba/libsmbclient-dev_3.0.7-2_i386.deb
libsmbclient_3.0.7-2_i386.deb
  to pool/main/s/samba/libsmbclient_3.0.7-2_i386.deb
python2.3-samba_3.0.7-2_i386.deb
  to pool/main/s/samba/python2.3-samba_3.0.7-2_i386.deb
samba-common_3.0.7-2_i386.deb
  to pool/main/s/samba/samba-common_3.0.7-2_i386.deb
samba-doc_3.0.7-2_all.deb
  to pool/main/s/samba/samba-doc_3.0.7-2_all.deb
samba_3.0.7-2.diff.gz
  to pool/main/s/samba/samba_3.0.7-2.diff.gz
samba_3.0.7-2.dsc
  to pool/main/s/samba/samba_3.0.7-2.dsc
samba_3.0.7-2_i386.deb
  to pool/main/s/samba/samba_3.0.7-2_i386.deb
smbclient_3.0.7-2_i386.deb
  to pool/main/s/samba/smbclient_3.0.7-2_i386.deb
smbfs_3.0.7-2_i386.deb
  to pool/main/s/samba/smbfs_3.0.7-2_i386.deb
swat_3.0.7-2_i386.deb
  to pool/main/s/samba/swat_3.0.7-2_i386.deb
winbind_3.0.7-2_i386.deb
  to pool/main/s/samba/winbind_3.0.7-2_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steve Langasek <email address hidden> (supplier of updated samba package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 26 Oct 2004 01:35:23 -0700
Source: samba
Binary: samba-doc libsmbclient libpam-smbpass swat winbind smbclient samba samba-common libsmbclient-dev python2.3-samba smbfs
Architecture: source i386 all
Version: 3.0.7-2
Distribution: unstable
Urgency: high
Maintainer: Eloy A. Paris <email address hidden>
Changed-By: Steve Langasek <email address hidden>
Description:
 libpam-smbpass - pluggable authentication module for SMB password database
 libsmbclient - shared library that allows applications to talk to SMB servers
 libsmbclient-dev - libsmbclient static libraries and headers
 python2.3-samba - Python bindings that allow access to various aspects of Samba
 samba - a LanManager-like file and printer server for Unix
 samba-common - Samba common files used by both the server and the client
 samba-doc - Samba documentation
 smbclient - a LanManager-like simple client for Unix
 smbfs - mount and umount commands for the smbfs (for kernels >= than 2.2.
 swat - Samba Web Administration Tool
 winbind - service to resolve user and group information from Windows NT ser
Closes: 227791 236869 249890 251858 260707 261808 261917 269443 270175 270175 275741
Changes:
 samba (3.0.7-2) unstable; urgency=high
 .
   * High-urgency upload for sarge-targetted RC fixes.
   * Use autogen.sh in unpatch-source as well as in patch-source, to get
     rid of the autom4te.cach...

Read more...

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (5.5 KiB)

Message-Id: <email address hidden>
Date: Tue, 26 Oct 2004 17:32:19 -0400
From: Steve Langasek <email address hidden>
To: <email address hidden>
Subject: Bug#251858: fixed in samba 3.0.7-2

Source: samba
Source-Version: 3.0.7-2

We believe that the bug you reported is fixed in the latest version of
samba, which is due to be installed in the Debian FTP archive:

libpam-smbpass_3.0.7-2_i386.deb
  to pool/main/s/samba/libpam-smbpass_3.0.7-2_i386.deb
libsmbclient-dev_3.0.7-2_i386.deb
  to pool/main/s/samba/libsmbclient-dev_3.0.7-2_i386.deb
libsmbclient_3.0.7-2_i386.deb
  to pool/main/s/samba/libsmbclient_3.0.7-2_i386.deb
python2.3-samba_3.0.7-2_i386.deb
  to pool/main/s/samba/python2.3-samba_3.0.7-2_i386.deb
samba-common_3.0.7-2_i386.deb
  to pool/main/s/samba/samba-common_3.0.7-2_i386.deb
samba-doc_3.0.7-2_all.deb
  to pool/main/s/samba/samba-doc_3.0.7-2_all.deb
samba_3.0.7-2.diff.gz
  to pool/main/s/samba/samba_3.0.7-2.diff.gz
samba_3.0.7-2.dsc
  to pool/main/s/samba/samba_3.0.7-2.dsc
samba_3.0.7-2_i386.deb
  to pool/main/s/samba/samba_3.0.7-2_i386.deb
smbclient_3.0.7-2_i386.deb
  to pool/main/s/samba/smbclient_3.0.7-2_i386.deb
smbfs_3.0.7-2_i386.deb
  to pool/main/s/samba/smbfs_3.0.7-2_i386.deb
swat_3.0.7-2_i386.deb
  to pool/main/s/samba/swat_3.0.7-2_i386.deb
winbind_3.0.7-2_i386.deb
  to pool/main/s/samba/winbind_3.0.7-2_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steve Langasek <email address hidden> (supplier of updated samba package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 26 Oct 2004 01:35:23 -0700
Source: samba
Binary: samba-doc libsmbclient libpam-smbpass swat winbind smbclient samba samba-common libsmbclient-dev python2.3-samba smbfs
Architecture: source i386 all
Version: 3.0.7-2
Distribution: unstable
Urgency: high
Maintainer: Eloy A. Paris <email address hidden>
Changed-By: Steve Langasek <email address hidden>
Description:
 libpam-smbpass - pluggable authentication module for SMB password database
 libsmbclient - shared library that allows applications to talk to SMB servers
 libsmbclient-dev - libsmbclient static libraries and headers
 python2.3-samba - Python bindings that allow access to various aspects of Samba
 samba - a LanManager-like file and printer server for Unix
 samba-common - Samba common files used by both the server and the client
 samba-doc - Samba documentation
 smbclient - a LanManager-like simple client for Unix
 smbfs - mount and umount commands for the smbfs (for kernels >= than 2.2.
 swat - Samba Web Administration Tool
 winbind - service to resolve user and group information from Windows NT ser
Closes: 227791 236869 249890 251858 260707 261808 261917 269443 270175 270175 275741
Ch...

Read more...

Changed in samba:
status: Unknown → Fix Released
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.