DBWRAP_TOOL(1)
π¦ DBWRAP_TOOL(1) β System Administration tools π¦
okay bestie, welcome to dbwrap_tool(1) β yes it's a section-1 manual page, yes it lives in System Administration tools, and yes it's about to become your new obsession. sit down, hydrate, let's go π
β¨ NAME β¨
dbwrap_tool β low level TDB/CTDB manipulation tool using the dbwrap interface π
πΈ SYNOPSIS πΈ
dbwrap_tool [-?|--help] [--usage] [--persistent] [--non-persistent]
[-d|--debuglevel=DEBUGLEVEL] [--debug-stdout] [--configfile=CONFIGFILE]
[--option=name=value] [-l|--log-basename=LOGFILEBASE] [--leak-report]
[--leak-report-full] {<database>} {<operation>}
[<key> [<type> [<value>]]]
likeβ¦ look at that argument list. it's giving "I have range" π₯
π DESCRIPTION π
This tool is part of the samba(7) suite. icon behavior, no notes.
The dbwrap_tool program is used to read and manipulate TDB/CTDB databases using the dbwrap interface. that's the whole vibe.
The following database operations are available:
- fetch: fetch a record
- store: create or modify a record
- delete: remove a record
- exists: test for existence of a record
- erase: remove all records
- listkeys: list all available records
- listwatchers: list processes, which are waiting for changes in a record
and the following types are available:
- int32: signed 32bit integer
- uint32: unsigned 32bit integer
- string: "hello world"
- hex: hex strings like "68656C6C6F20776F726C6400" ("hello world")
not thehexexample literally being"hello world"in disguise π she's multilingual, she contains multitudes.
π OPTIONS π
--persistentβ Open the database as a persistent database.
Exactly one of--persistentand--non-persistentmust be specified. pick one, bestie, you can't have both π«Ά
--non-persistentβ Open the database as a non-persistent database.
Caveat: opening a database as non-persistent when there is currently no other opener will wipe the database. π that's not a vibe, that's a crime scene. read that twice. Exactly one of--persistentand--non-persistentmust be specified.
-?,--helpβ Print a summary of command line options. the classic "help me" button β¨--usageβ Display brief usage message. short and sweet, a little teaser.-d,--debuglevel=levelβ level is an integer from 0 to 10. The default value if this parameter is not specified is 1 for client applications.
The higher this value, the more detail will be logged to the log files about the activities of the server. At level 0, only critical errors and serious warnings will be logged. Level 1 is a reasonable level for day-to-day running β it generates a small amount of information about operations carried out.
Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic. π
Note that specifying this parameter here will override the log level parameter in the /etc/samba/smb.conf file. it said "your config file doesn't get a vote today".
--debug-stdoutβ This will redirect debug output to STDOUT. By default all clients are logging to STDERR. switching lanes, love that for her π--configfile=<configuration file>β The file specified contains the configuration details required by the client. The information in this file can be general for client and server or only provide client specific like options such as client smb encrypt. See/etc/samba/smb.conffor more information. The default configuration file name is determined at compile time. β¨ (compile time, not runtime β she was born that way)--option=<name>=<value>β Set thesmb.conf(5)option "<name>" to value "<value>" from the command line. This overrides compiled-in defaults and options read from the configuration file. If a name or a value includes a space, wrap whole--option=name=valueinto quotes. π-l,--log-basename=logdirectoryβ Base directory name for log/debug files. The extension.prognamewill be appended (e.g.log.smbclient,log.smbd, etc...). The log file is never removed by the client. she leaves the logs exactly where she found them π«Ά--leak-reportβ Enable talloc leak reporting on exit. snitch on your memory, it's self care.--leak-report-fullβ Enable full talloc leak reporting on exit. the deluxe snitch version π-V,--versionβ Prints the program version number.
π COMMANDS π
π fetch
dbwrap_tool <database> fetch <key> <type>
π store
dbwrap_tool <database> store <key> <type> <value>
π delete
dbwrap_tool <database> delete <key>
π exists
dbwrap_tool <database> exists <key>
π erase
dbwrap_tool <database> erase
π listkeys
dbwrap_tool <database> listkeys
π listwatchers
dbwrap_tool <database> listwatchers
π EXAMPLES π
List all keys from winbindd_idmap.tdb
dbwrap_tool --persistent winbindd_idmap.tdb listkeys
Fetch record with key "USER HWM" as uint32
dbwrap_tool --persistent winbindd_idmap.tdb fetch "USER HWM" uint32
Remove record with key "USER HWM"
dbwrap_tool --persistent winbindd_idmap.tdb remove "USER HWM"
Store and overwrite record "USER HWM" with value 214
uint32: dbwrap_tool --persistent winbindd_idmap.tdb store "USER HWM" uint32 214
hex: dbwrap_tool --persistent winbindd_idmap.tdb store "USER HWM" hex D6000000
β οΈ NOTES β οΈ
Use with caution! that's it. that's the whole note. she said it once and she meant it π
π VERSION π
This man page is part of version 4.24.7 of the Samba suite.
π SEE ALSO π
smbd(8), samba(7) β go read those next, bestie, iykyk π
π§ 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. iconic lineage fr fr π
The dbwrap_tool manpage was written by Bjoern Baumbach. thank you for your service π«Ά
and that's a wrap on Samba 4.24.7, dated 09/09/2026 β stan a tool that tells you exactly how it might wipe your database, no cap π β¨ bye bestie, go list some keys π¦
π¦ where this page comes from
- fedora 44: samba-client 2:4.24.7-1.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms