I did not see any solutions on google for this problem, though there
were a couple of pages of requests for help.
Symptom - some connection difficulty. In my case, "access denied"
when trying to print from a windows box to a Samba server running
CUPS.
/var/log/samba/(hostname).smbd shows the following line
[2003/07/14 13:24:37, 0] tdb/tdbutil.c:tdb_log(531)
tdb(/var/cache/samba/printing.tdb): rec_read bad magic 0xd9fee666 at
offset=(some offset number)
Note that there are similar log entries where the problem was with
something other than printing. The "bad magic" number is the same,
though the implicated file is /var/cache/samba/connections.tdb or some
other .tdb file.
Here's the fix: delete or rename the file named in the log. In my
case I did this:
mv /var/cache/samba/printing.tdb /var/cache/samba/printing.tdb.old
then I did this:
/etc/init.d/smb restart
This creates a clean .tdb file.
I hope this helps if you run into a similar problem.
|