Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80293 - Samba 3.0.7 to 3.0.10 upgrade fails to move critical config files (smbpasswd)
Summary: Samba 3.0.7 to 3.0.10 upgrade fails to move critical config files (smbpasswd)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-31 23:42 UTC by Tom
Modified: 2005-02-05 04:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom 2005-01-31 23:42:34 UTC
Going from Samba 3.0.7 to 3.0.10, the default location for smbpasswd was changed,  Any user without smbpasswd defined in smb.conf will upgrade to a samba install unable to authenticate users due to the change and failure.

Reproducible: Always
Steps to Reproduce:
1. emerge -u samba
2. etc-update, shows no config files needing manual attention in samba
3. restart samba, authentication fails

Actual Results:  
Looking back over the saved terminal session, I found the problem.

 * 2004-11: new ebuild flags:
 *     quotas:    now disabled by default
 *     winbind:   now disabled by default
 *     libclamav: (oav) don't use clamav daemon, just load libraries when needed
 * /etc/samba/private moved to /var/lib/samba/private
 * Copying /etc/samba/private/* to /var/lib/samba/private/
cp: `/var/tmp/portage/samba-3.0.10/image//var/lib/samba/private/': specified
destination directory does not exist
Try `cp --help' for more information.
>>> Unpacking source...

Expected Results:  
the cp process above should have completed with no error, or the ebuild should
have aborted when it noticed the copy failed.

Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.7-gentoo-r6 i686)
=================================================================
System uname: 2.6.7-gentoo-r6 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1,
Oct 24 2004, 13:20:20)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.2.3-r5, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/jetty/etc /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control
/var/www/localhost/htdocs/squirrelmail/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
rsync://csociety-ftp.ecn.purdue.edu/pub/gentoo/
http://mirror.tucdemonic.org/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm arts avi berkdb bitmap-fonts crypt cups encode f77 fam font-server
foomaticdb fortran gdbm gif gpm gtk2 imagemagick imap imlib java jpeg junit ldap
libg++ libwww mad maildir mikmod motif mpeg ncurses nls oggvorbis opengl oss pam
pdflib perl png ppds python quicktime readline samba sasl sdl slang spell ssl
svga tcpd tiff truetype truetype-fonts type1-fonts xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Christian Andreetta (RETIRED) gentoo-dev 2005-02-05 04:57:55 UTC
fixed in 3.0.10 and 3.0.11. Thanks.