hello, there is a small problem i have been incurring for a while while upgrading samba3 (i always rebuild samba3 --with system).
immediatly after upgrade
[EMAIL PROTECTED] ~ $ smbclient -L moskow protocol negotiation failed zsh: 26932 exit 1 smbclient -L moskow
and in syslog: Oct 18 20:21:19 Moskow smbd[19939]: [2003/10/18 20:21:19, 0] tdb/tdbutil.c:tdb_log(724) Oct 18 20:21:19 Moskow smbd[19939]: tdb(/var/cache/samba/messages.tdb): tdb_reopen: open failed (No such file or directory) Oct 18 20:21:19 Moskow smbd[19939]: [2003/10/18 20:21:19, 0] smbd/server.c:open_sockets_smbd(410) Oct 18 20:21:19 Moskow smbd[19939]: tdb_reopen_all failed.
[EMAIL PROTECTED] /etc/squid # ll /var/cache/samba/messages.tdb ls: /var/cache/samba/messages.tdb: No such file or directory
%post is postinstall scriptlet (using /bin/sh):
/usr/share/rpm-helper/add-service samba $1 smb #/usr/share/rpm-helper/add-service samba $1 wrepld
# Add a unix group for samba machine accounts groupadd -frg 421 machines
# Migrate tdb's from /var/lock/samba (taken from official samba spec file):
for i in /var/lock/samba/*.tdb
do
if [ -f $i ]; then
newname=`echo $i | sed -e's|var\/lock\/samba|var\/cache\/samba|'`
echo "Moving $i to $newname"
mv $i $newname
fi
done# Remove the transient tdb files (modified from version in off. samba spec:
for TDB in brlock unexpected locking messages; do
if [ -e /var/cache/samba/$TDB.tdb ]; then
rm -f /var/cache/samba/$TDB.tdb;
fi;
doneif [ -d /var/lock/samba ]; then
rm -rf /var/lock/samba
fiSo we remove /var/cache/samba/messages.tdb after restarting samba server this is not nice (and i should have reported this way earlier, sorry)
regards, L.
--
Luca Berra -- [EMAIL PROTECTED]
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \