TDBTOOL(8)
π
TDBTOOL β the tdbtool(8) glow-up
okay bestie, welcome to the System Administration tools corner of the manual, where we're talking about tdbtool β yes, that's the one from section 8 of the man pages. buckle up π
β¨ NAME β¨
tdbtool β manipulate the contents of TDB files. that's it, that's the job π
β¨ SYNOPSIS β¨
tdbtool
tdbtool [-l] TDBFILE [COMMANDS...]
β¨ DESCRIPTION β¨
so this little icon is part of the samba(1) suite π«Ά
tdbtool is a tool for displaying and altering the contents of Samba TDB (Trivial DataBase) files. every single command listed down below? you can type it in interactively, or you can just hand it over on the command line like the main character you are π
β¨ OPTIONS β¨
-lβ this option disables any locking, by passingTDB_NOLOCKtotdb_open_ex(). π¨
β οΈ only use this for database files which are not used by any other process! and also only if it is otherwise not possible to open the database β e.g. databases which were created with mutex locking. fr fr, read that twice π
β¨ COMMANDS β¨
the whole menu, no skips, no crumbs left behind π
create TDBFILEβ create a new database named TDBFILE. baby's first tdb β¨open TDBFILEβ open an existing database named TDBFILE. come on in πeraseβ erase the current database. poof πdumpβ dump the current database as strings.cdumpβ dump the current database as connection records.keysβ dump the current database keys as strings.hexkeysβ dump the current database keys as hex values.infoβ print summary information about the current database. the vibe check πinsert KEY DATAβ insert a record into the current database.move KEY TDBFILEβ move a record from the current database into TDBFILE.store KEY DATAβ store (replace) a record in the current database.storehex KEY DATAβ store (replace) a record in the current database where key and data are in hex format.show KEYβ show a record by key. πdelete KEYβ delete a record by key. bye bestie πlistβ print the current database hash table and free list.freeβ print the current database and free list.! COMMANDβ execute the given system command. yes the exclamation mark is literally part of it π«Άfirstβ print the first record in the current database.nextβ print the next record in the current database.checkβ check the integrity of the current database.repackβ repack a database using a temporary file to remove fragmentation. glow-up for your file structure β¨quitβ exittdbtool. π¦
β¨ CAVEATS β¨
the contents of the Samba TDB files are private to the implementation and should not be altered with tdbtool. π¬
bestie I'm gonna hold your hand when I say this β this is a real warning, not a drill. hands off the internals π
β¨ VERSION β¨
this man page is correct for version 3.6 of the Samba suite.
β¨ EXIT STATUS β¨
the tdbtool program returns 0 if the operation succeeded, or 1 if the operation failed. simple as that β
β¨ AUTHOR β¨
the original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. π
π cute sign-off π
and that's the whole page, bestie! this one's from Samba 4.0, dated 2015-04-25 β a lil vintage moment, but we love her anyway. go forth, open your TDBs responsibly, and don't touch the locking unless you absolutely have to. mwah ππ
π¦ where this page comes from
- alpine 3.23: tdb-doc 1.4.14-r0 Β· LGPL-3.0-or-later
- alpine 3.24: tdb-doc 1.4.15-r1 Β· LGPL-3.0-or-later
- arch rolling: tdb 1.4.15-2 Β· GPL-3.0-or-later
- centos-stream 10: tdb-tools 1.4.15-100.el10 Β· LGPL-3.0-or-later
- centos-stream 9: tdb-tools 1.4.15-1.el9 Β· LGPL-3.0-or-later
- fedora 43: tdb-tools 1.4.14-3.fc43 Β· LGPL-3.0-or-later
- fedora 44: tdb-tools 1.4.15-1.fc44 Β· LGPL-3.0-or-later
- nixos 26.05: tdb 1.4.15
- nixpkgs unstable: tdb 1.4.15
- ubuntu resolute: tdb-tools 2:1.4.14+samba4.23.6+dfsg-1ubuntu2 Β· GPL-3.0-or-later
- ubuntu resolute: tdb-tools 2:1.4.14+samba4.23.6+dfsg-1ubuntu2.2 Β· GPL-3.0-or-later
- ubuntu stonking: tdb-tools 2:1.4.15+samba4.24.7+dfsg-1ubuntu1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms