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 root    8 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 root    8 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:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:root daemon:1:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:daemon bin:2:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:bin sys:3:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:sys sync:4:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:sync games:5:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:games man:6:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:man lp:7:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:lp mail:8:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:mail news:9:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:news uucp:10:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:uucp proxy:13:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:proxy www-data:33:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:www-data backup:34:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:backup list:38:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:Mailing List Manager irc:39:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:ircd gnats:41:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:Gnats Bug-Reporting System (admin) nobody:65534:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:nobody olaf:1000:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:Olaf van der Spek,,, identd:100:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000: sshd:101:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000: fetchmail:103:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000: svn:1001:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:,,, joost:1002:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:Joost Bosker,,, Debian-exim:102:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000: mysql:104:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:MySQL Server,,, nagios:106:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000: ntp:107:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:
debian:/etc/samba#


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to