300-300 · Question #98
Which of the following commands will dump the contents of a Samba printer driver's TDB file? (Choose two.)
The correct answer is B. tdbtool file.tdb dump E. tdbdump file.tdb. B (tdbtool file.tdb dump) and E (tdbdump file.tdb) are correct because Samba ships two dedicated TDB utilities: tdbdump reads a TDB file and prints all key/value records to stdout in one shot, while tdbtool is an interactive (and scriptable) TDB shell where dump is a valid…
Question
Options
- Apdbedit --tdbdump file.tdb
- Btdbtool file.tdb dump
- Csmbclient --tdbdump file.tdb
- Dtdbcat file.tdb
- Etdbdump file.tdb
How the community answered
(45 responses)- A2% (1)
- B87% (39)
- C9% (4)
- D2% (1)
Explanation
B (tdbtool file.tdb dump) and E (tdbdump file.tdb) are correct because Samba ships two dedicated TDB utilities: tdbdump reads a TDB file and prints all key/value records to stdout in one shot, while tdbtool is an interactive (and scriptable) TDB shell where dump is a valid subcommand that does the same thing.
A is wrong because pdbedit manages the Samba user/password database (passdb); it has no --tdbdump flag and is unrelated to printer driver TDB files. C is wrong because smbclient is a network client for connecting to SMB shares - it has no TDB inspection capability whatsoever. D is wrong because tdbcat is not a real Samba utility; it's a plausible-sounding distractor blending tdbdump and cat.
Memory tip: Think "two T's, two tools" - Tdbdump (standalone) and Tdbtool dump (interactive). Any answer that isn't a tdb* command is a red herring, since SMB client tools like smbclient and pdbedit operate at a higher abstraction layer and never touch raw TDB files directly.
Topics
Community Discussion
No community discussion yet for this question.