Bug#353694: account_policy_get: tdb_fetch_uint32 failed for field
merge 307702 353694 thanks On Mon, Feb 20, 2006 at 03:10:18PM +0100, Olaf van der Spek wrote: Steve Langasek wrote: Why are you reporting this as a bug? According to the log you included, the package installed successfully. When I see 10 failures during package installation I assume something went wrong. So basically, this is a duplicate of bug #307702. On Tue, Feb 21, 2006 at 06:48:43AM +0100, Christian Perrier wrote: (Reading database ... 34359 files and directories currently installed.) Unpacking samba (from .../samba_3.0.21b-1_i386.deb) ... Setting up samba (3.0.21b-1) ... Generating /etc/default/samba... TDBSAM version too old (0), trying to convert it. TDBSAM converted successfully. These messages probably come from this piece of code in the postinst: Yes, they must come from the part of the postinst that's generating the passdb.tdb file; nevertheless, I've been unable to reproduce the problem here on a fresh install, even when looking specifically at the debconf information included in the bug report. On Tue, Feb 21, 2006 at 08:30:10AM +0100, Olaf van der Spek wrote: Could you try to run manually, after the install: getent passwd | /usr/sbin/mksmbpasswd /etc/samba/smbpasswd pdbedit -i smbpasswd -e tdbsam Then send here the content of /etc/samba/smbpasswd if these commands output what you reported? debian:/etc/samba# getent passwd | /usr/sbin/mksmbpasswd /etc/samba/smbpasswd debian:/etc/samba# pdbedit -i smbpasswd -e tdbsam Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_root) Please remove the previously-generated /var/lib/samba/passdb.tdb before running these commands. This is not the same warning reported before. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/ signature.asc Description: Digital signature
Bug#353694: account_policy_get: tdb_fetch_uint32 failed for field
Steve Langasek wrote: So basically, this is a duplicate of bug #307702. Yes. I've no idea why I didn't notice that one. It even has the exact same title. Yes, they must come from the part of the postinst that's generating the passdb.tdb file; nevertheless, I've been unable to reproduce the problem here on a fresh install, even when looking specifically at the debconf information included in the bug report. On Tue, Feb 21, 2006 at 08:30:10AM +0100, Olaf van der Spek wrote: Could you try to run manually, after the install: getent passwd | /usr/sbin/mksmbpasswd /etc/samba/smbpasswd pdbedit -i smbpasswd -e tdbsam Then send here the content of /etc/samba/smbpasswd if these commands output what you reported? debian:/etc/samba# getent passwd | /usr/sbin/mksmbpasswd /etc/samba/smbpasswd debian:/etc/samba# pdbedit -i smbpasswd -e tdbsam Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_root) Please remove the previously-generated /var/lib/samba/passdb.tdb before running these commands. This is not the same warning reported before. debian:/var/lib/samba# rm passdb.tdb debian:/var/lib/samba# cd /etc/samba/ debian:/etc/samba# getent passwd | /usr/sbin/mksmbpasswd /etc/samba/smbpasswd debian:/etc/samba# pdbedit -i smbpasswd -e tdbsam TDBSAM version too old (0), trying to convert it. TDBSAM converted successfully. debian:/etc/samba# A remove/purge/install doesn't reproduce the problem for me either. -- Olaf van der Spek http://xwis.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#353694: account_policy_get: tdb_fetch_uint32 failed for field
Olaf van der Spek wrote: A remove/purge/install doesn't reproduce the problem for me either. I removed /etc/samba and reinstalled samba-common and now a remove/purge/install does reproduce the problem. -- Olaf van der Spek http://xwis.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#353694: account_policy_get: tdb_fetch_uint32 failed for field
On Tue, Feb 21, 2006 at 09:04:24AM +0100, Olaf van der Spek wrote: debian:/var/lib/samba# rm passdb.tdb debian:/var/lib/samba# cd /etc/samba/ debian:/etc/samba# getent passwd | /usr/sbin/mksmbpasswd /etc/samba/smbpasswd debian:/etc/samba# pdbedit -i smbpasswd -e tdbsam TDBSAM version too old (0), trying to convert it. TDBSAM converted successfully. debian:/etc/samba# Right. I can actually reproduce this, now; I don't know why I couldn't earlier. This first warning message is caused by initialization of passdb.tdb from scratch. The rest of the warning messages are caused by initialization of account_policy.tdb from scratch. We can suppress all but the first warning by calling pdbedit -i smbpasswd -e tdbsam -y /dev/null before calling pdbedit -i smbpasswd -e tdbsam, which will make sure we copy any existing account policies as well (but I don't think it's possible for there to be any?). Otherwise, just redirecting stdout to /dev/null for the entire pdbedit command will suppress all of these warnings, but I'm not sure that won't suppress other, more important messages. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/ signature.asc Description: Digital signature
Bug#353694: account_policy_get: tdb_fetch_uint32 failed for field
Package: samba Version: 3.0.21b-1 Severity: normal Hi, ~$ sudo apt-get install samba Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: samba-common Recommended packages: swat ldb-tools smbldap-tools The following NEW packages will be installed: samba samba-common 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 5235kB of archives. After unpacking 12.4MB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://ftp.surfnet.nl testing/main samba-common 3.0.21b-1 [2194kB] Get:2 http://ftp.surfnet.nl testing/main samba 3.0.21b-1 [3041kB] Fetched 5235kB in 15s (328kB/s) Preconfiguring packages ... Selecting previously deselected package samba-common. (Reading database ... 61579 files and directories currently installed.) Unpacking samba-common (from .../samba-common_3.0.21b-1_i386.deb) ... Selecting previously deselected package samba. Unpacking samba (from .../samba_3.0.21b-1_i386.deb) ... Setting up samba-common (3.0.21b-1) ... Setting up samba (3.0.21b-1) ... Generating /etc/default/samba... TDBSAM version too old (0), trying to convert it. TDBSAM converted successfully. account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), r eturning 0 account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), retu rning 0 account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to chan ge password), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), retu rning 0 account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), r eturning 0 account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), r eturning 0 account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), retur ning 0 account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine passwor d change), returning 0 Starting Samba daemons: nmbd smbd. $ -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15-1-k7 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages samba depends on: ii debconf [debc 1.4.70 Debian configuration management sy ii libacl1 2.2.34-1 Access control list shared library ii libattr1 2.4.25-1 Extended attribute shared library ii libc6 2.3.5-13 GNU C Library: Shared libraries an ii libcomerr21.38+1.39-WIP-2005.12.31-1 common error description library ii libcupsys21.1.23-15 Common UNIX Printing System(tm) - ii libkrb53 1.4.3-5MIT Kerberos runtime libraries ii libldap2 2.1.30-12 OpenLDAP libraries ii libpam-module 0.79-3.1 Pluggable Authentication Modules f ii libpam-runtim 0.79-3.1 Runtime support for the PAM librar ii libpam0g 0.79-3.1 Pluggable Authentication Modules l ii libpopt0 1.7-5 lib for parsing cmdline parameters ii logrotate 3.7.1-2Log rotation utility ii lsb-base 3.0-15 Linux Standard Base 3.0 init scrip ii netbase 4.24 Basic TCP/IP networking system ii samba-common 3.0.21b-1 Samba common files used by both th Versions of packages samba recommends: pn smbldap-tools none (no description available) -- debconf information: samba/nmbd_from_inetd: * samba/run_mode: daemons samba/log_files_moved: samba/tdbsam: false * samba/generate_smbpasswd: true -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#353694: account_policy_get: tdb_fetch_uint32 failed for field
On Mon, Feb 20, 2006 at 11:51:24AM +0100, Olaf van der Spek wrote: ~$ sudo apt-get install samba Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: samba-common Recommended packages: swat ldb-tools smbldap-tools The following NEW packages will be installed: samba samba-common 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 5235kB of archives. After unpacking 12.4MB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://ftp.surfnet.nl testing/main samba-common 3.0.21b-1 [2194kB] Get:2 http://ftp.surfnet.nl testing/main samba 3.0.21b-1 [3041kB] Fetched 5235kB in 15s (328kB/s) Preconfiguring packages ... Selecting previously deselected package samba-common. (Reading database ... 61579 files and directories currently installed.) Unpacking samba-common (from .../samba-common_3.0.21b-1_i386.deb) ... Selecting previously deselected package samba. Unpacking samba (from .../samba_3.0.21b-1_i386.deb) ... Setting up samba-common (3.0.21b-1) ... Setting up samba (3.0.21b-1) ... Generating /etc/default/samba... TDBSAM version too old (0), trying to convert it. TDBSAM converted successfully. account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), r eturning 0 account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), retu rning 0 account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to chan ge password), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), retu rning 0 account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), r eturning 0 account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), r eturning 0 account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), retur ning 0 account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine passwor d change), returning 0 Starting Samba daemons: nmbd smbd. $ Why are you reporting this as a bug? According to the log you included, the package installed successfully. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/ signature.asc Description: Digital signature
Bug#353694: account_policy_get: tdb_fetch_uint32 failed for field
Steve Langasek wrote: Why are you reporting this as a bug? According to the log you included, the package installed successfully. When I see 10 failures during package installation I assume something went wrong. -- Olaf van der Spek http://xwis.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#353694: account_policy_get: tdb_fetch_uint32 failed for field
Quoting Olaf van der Spek ([EMAIL PROTECTED]): Steve Langasek wrote: Why are you reporting this as a bug? According to the log you included, the package installed successfully. When I see 10 failures during package installation I assume something went wrong. There may be a lot of reasons for this, the most likely being old TDB files lying in /var/lib/samba or so -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#353694: account_policy_get: tdb_fetch_uint32 failed for field
Christian Perrier wrote: Quoting Olaf van der Spek ([EMAIL PROTECTED]): Steve Langasek wrote: Why are you reporting this as a bug? According to the log you included, the package installed successfully. When I see 10 failures during package installation I assume something went wrong. There may be a lot of reasons for this, the most likely being old TDB files lying in /var/lib/samba or so So are they warnings or errors? And I didn't install samba before. -- Olaf van der Spek http://xwis.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#353694: account_policy_get: tdb_fetch_uint32 failed for field
Christian Perrier wrote: This: TDBSAM version too old (0), trying to convert it. TDBSAM converted successfully. Is then pretty strange... On another system (unstable this time): # cd /var/lib/s -su: cd: /var/lib/s: No such file or directory # cd /var/lib/samba -su: cd: /var/lib/samba: No such file or directory # dpkg -l|grep samba ii samba-common 3.0.21b-1 Samba common files used by both the server a # apt-get install samba Reading package lists... Done Building dependency tree... Done Recommended packages: swat ldb-tools smbldap-tools The following NEW packages will be installed: samba 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 3041kB of archives. After unpacking 7328kB of additional disk space will be used. Get:1 http://ftp.surfnet.nl unstable/main samba 3.0.21b-1 [3041kB] Fetched 3041kB in 10s (304kB/s) Preconfiguring packages ... Selecting previously deselected package samba. (Reading database ... 34359 files and directories currently installed.) Unpacking samba (from .../samba_3.0.21b-1_i386.deb) ... Setting up samba (3.0.21b-1) ... Generating /etc/default/samba... TDBSAM version too old (0), trying to convert it. TDBSAM converted successfully. account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0 Starting Samba daemons: nmbd smbd. # -- Olaf van der Spek http://xwis.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#353694: account_policy_get: tdb_fetch_uint32 failed for field
This: TDBSAM version too old (0), trying to convert it. TDBSAM converted successfully. Is then pretty strange... -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#353694: account_policy_get: tdb_fetch_uint32 failed for field
On another system (unstable this time): # cd /var/lib/s -su: cd: /var/lib/s: No such file or directory # cd /var/lib/samba -su: cd: /var/lib/samba: No such file or directory For the sake of it, can you check whether there is a /etc/samba/smbpasswd file. (Reading database ... 34359 files and directories currently installed.) Unpacking samba (from .../samba_3.0.21b-1_i386.deb) ... Setting up samba (3.0.21b-1) ... Generating /etc/default/samba... TDBSAM version too old (0), trying to convert it. TDBSAM converted successfully. These messages probably come from this piece of code in the postinst: db_get samba/tdbsam || true PDB_MIGRATE=${RET} # Done with debconf now. db_stop umask 066 # FIXME: disable if ldapsam support is enabled? # FIXME: we don't want to pass these through the smbpasswd backend, # some of the faking can cause us problems! if [ ${GENERATE_SMBPASSWD} = true -a ! -e /var/lib/samba/passdb.tdb -a ! -e /etc/samba/smbpasswd ]; then getent passwd | /usr/sbin/mksmbpasswd /etc/samba/smbpasswd pdbedit -i smbpasswd -e tdbsam rm /etc/samba/smbpasswd fi In your case, you probably answered Yes to the question about: Template: samba/generate_smbpasswd Type: boolean Default: false _Description: Create samba password database, /var/lib/samba/passdb.tdb? Could you try to run manually, after the install: getent passwd | /usr/sbin/mksmbpasswd /etc/samba/smbpasswd pdbedit -i smbpasswd -e tdbsam Then send here the content of /etc/samba/smbpasswd if these commands output what you reported? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#353694: account_policy_get: tdb_fetch_uint32 failed for field
Christian Perrier wrote: On another system (unstable this time): # cd /var/lib/s -su: cd: /var/lib/s: No such file or directory # cd /var/lib/samba -su: cd: /var/lib/samba: No such file or directory For the sake of it, can you check whether there is a /etc/samba/smbpasswd file. There isn't. # ls -l /etc/samba/ total 9 -rw-r--r-- 1 root root8 Oct 26 2004 gdbcommands -rw-r--r-- 1 root root 7828 Feb 8 09:26 smb.conf # These messages probably come from this piece of code in the postinst: db_get samba/tdbsam || true PDB_MIGRATE=${RET} # Done with debconf now. db_stop umask 066 # FIXME: disable if ldapsam support is enabled? # FIXME: we don't want to pass these through the smbpasswd backend, # some of the faking can cause us problems! if [ ${GENERATE_SMBPASSWD} = true -a ! -e /var/lib/samba/passdb.tdb -a ! -e /etc/samba/smbpasswd ]; then getent passwd | /usr/sbin/mksmbpasswd /etc/samba/smbpasswd pdbedit -i smbpasswd -e tdbsam rm /etc/samba/smbpasswd fi In your case, you probably answered Yes to the question about: Indeed: * samba/generate_smbpasswd: true Template: samba/generate_smbpasswd Type: boolean Default: false _Description: Create samba password database, /var/lib/samba/passdb.tdb? Could you try to run manually, after the install: getent passwd | /usr/sbin/mksmbpasswd /etc/samba/smbpasswd pdbedit -i smbpasswd -e tdbsam Then send here the content of /etc/samba/smbpasswd if these commands output what you reported? debian:/etc/samba# getent passwd | /usr/sbin/mksmbpasswd /etc/samba/smbpasswd debian:/etc/samba# pdbedit -i smbpasswd -e tdbsam Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_root) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_daemon) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_bin) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_sys) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_sync) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_games) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_man) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_lp) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_mail) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_news) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_uucp) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_proxy) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_www-data) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_backup) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_list) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_irc) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_gnats) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_nobody) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_olaf) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_identd) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_sshd) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_fetchmail) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_svn) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_joost) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_debian-exim) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_mysql) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_nagios) Unable to modify passwd TDB! Error: Record exists occured while storing the main record (USER_ntp) debian:/etc/samba# ls -l total 13 -rw-r--r-- 1 root root8 Oct 26 2004 gdbcommands -rw-r--r-- 1 root root 7828 Feb 8 09:26 smb.conf -rw--- 1 root root 3088 Feb 21 08:25 smbpasswd debian:/etc/samba# cat smbpasswd # # SMB password file. # root:0:::[U ]:LCT-:root daemon:1:::[U ]:LCT-:daemon