Hello

i want see a file
the postfix of this file is .tdb and another is .fdb

which software can help me?
(in windows or linux)

Dani AI

Generated

If the file is named like group_mapping.tdb, it is almost certainly a Samba TDB (Trivial Database) file. These are binary key/value stores, so simply running open inside tdbtool will not print anything. On CentOS/RHEL, a safe, repeatable workflow is:

# 1) Work on a copy or take a backup (avoid locking issues while smbd/nmbd/winbind are running)
tdbbackup -v /var/lib/samba/group_mapping.tdb

# 2) Inspect the backup or a copy in read-only fashion
tdbdump /var/lib/samba/group_mapping.tdb | less

# 3) If you use tdbtool interactively
tdbtool /var/lib/samba/group_mapping.tdb
tdb> dump
tdb> keys
tdb> show <exact-key-name>
tdb> info

Tip: For Samba group mappings, a more human-friendly view is often available without touching the file directly:

net groupmap list

If your other file ends with .fdb, that extension is commonly a Firebird/InterBase database. First confirm with file yourdb.fdb. If it reports Firebird, install the Firebird client tools and connect read-only to inspect schema/data (prefer connecting to the running server instead of opening the file directly):

isql-fb -user SYSDBA -password masterkey host:/path/to/yourdb.fdb
SQL> show tables;
SQL> select first 10 * from some_table;
SQL> quit;

General cautions:

  • Always work on a copy when possible; both TDB and Firebird files may be locked or corrupted by concurrent access.
  • Expect binary or structured payloads; not all values will be human-readable. When in doubt, capture a tdbdump to a file and review it offline.

Recommended Answers

All 11 Replies

On my computer, I found .tdb files in ~/.config/pulse and ~/.cache/rhythmbox/album-art. There is also a module python-tdb.

I was able to open my tdb files in the python interpreter:

import tdb
t = tdb.open('foobar.tdb')
print(list(t.iterkeys()))

Backup your file first :).

In kubuntu, I also found

sudo aptitude install tdb-tools
tdbdump FOOBAR.tdb # prints database contents to console

They are probably some sort of dbase files.

To determine the file type, you can use the "file" command.
file foobar.tdb

If you are sure of the file type you can start searching for a proper viewer..

commented: very good idea +14

On my .tdb files, the 'file' command gives

TDB database version 6, little-endian hash size 999 bytes

The correct command seems to be tdbtool


I did mention the "file"-command as a tip for future cases where one doesn't know the right file type, and as a think that knowing the right file type is the first step in search of the right tool to open it..

Hi
I can not open my file with tdbtools :(
I have CentOS
and do this
rpm -i tdb-tools-1.2.1-3.el6.i686.rpm
then write
open group_mapping.tdb
but nothing happened
plz help me...

I never used it but it seems that you must write

tdbtool open group_mapping.tdb

or perhaps

tdbtool

and then open group_mapping.tdb.

thank you.I use tdbtool and then open file.tdb
but nothing happened and I can not see content of this file :( again

I have only a tdb file with one key to make tests, but you can explore the database once in the tdbtool interpreter. Simply use the available commands. Here is a session

22:06 tmp] tdbtool
tdb> open card-database.tdb
tdb> keys
key 26 bytes: alsa_card.pci-0000_00_1b.0
tdb> show alsa_card.pci-0000_00_1b.0

key 26 bytes
alsa_card.pci-0000_00_1b.0
data 176 bytes
[000] 42 02 4E 4C 00 00 00 05  74 61 6E 61 6C 6F 67 2D  B.NL.... tanalog-
[010] 69 6E 70 75 74 2D 6D 69  63 72 6F 70 68 6F 6E 65  input-mi crophone
[020] 2D 69 6E 74 65 72 6E 61  6C 00 72 00 00 00 00 00  -interna l.r....
[030] 00 00 00 74 61 6E 61 6C  6F 67 2D 69 6E 70 75 74  ...tanal og-input
[040] 2D 6D 69 63 72 6F 70 68  6F 6E 65 00 72 00 00 00  -microph one.r..
[050] 00 00 00 00 00 74 61 6E  61 6C 6F 67 2D 6F 75 74  .....tan alog-out
[060] 70 75 74 2D 73 70 65 61  6B 65 72 00 72 00 00 00  put-spea ker.r..
[070] 00 00 00 00 00 74 61 6E  61 6C 6F 67 2D 6F 75 74  .....tan alog-out
[080] 70 75 74 2D 68 65 61 64  70 68 6F 6E 65 73 00 72  put-head phones.r
[090] 00 00 00 00 00 00 00 00  74 68 64 6D 69 2D 6F 75  ....... thdmi-ou
[0A0] 74 70 75 74 2D 30 00 72  00 00 00 00 00 00 00 00  tput-0.r .......
tdb> info
Size of file/data: 32768/202
Number of records: 1
Incompatible hash: no
Smallest/average/largest keys: 26/26/26
Smallest/average/largest data: 176/176/176
Smallest/average/largest padding: 54/54/54
Number of dead records: 0
Smallest/average/largest dead records: 0/0/0
Number of free records: 1
Smallest/average/largest free records: 31768/31768/31768
Number of hash chains: 131
Smallest/average/largest hash chains: 0/0/1
Number of uncoalesced records: 0
Smallest/average/largest uncoalesced runs: 0/0/0
Percentage keys/data/padding/free/dead/rechdrs&tailers/hashes: 0/1/0/97/0/0/2
tdb> quit

If you can zip an attach a bigger tdb file to a post, we can try a session with one of your files if you want.

you need to download a file

A TDB is a back-up information file designed by Turbocompresseur Lister, a system that allows customers make expert eBay results and to modify and publish products in large. It contains a back-up of all eBay results for a particular customer. TDB information files are stored in the Data listing of a Turbocompresseur Lister set up

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.