LX0-104 · Question #318
Which files will be stored inside the directory specified below? # smbd -b |grep LOCKDIR LOCKDIR: /var/cache/samba
The correct answer is B. TDB files. The LOCKDIR variable in Samba's build configuration typically indicates the directory where internal TDB (Trivial Database) files are stored.
Question
Options
- AConfiguration files
- BTDB files
- CWINS name cache files
- DSamba print spool files
How the community answered
(17 responses)- A6% (1)
- B88% (15)
- C6% (1)
Why each option
The `LOCKDIR` variable in Samba's build configuration typically indicates the directory where internal TDB (Trivial Database) files are stored.
Configuration files like `smb.conf` are usually located in `/etc/samba` and are not stored in the `LOCKDIR`.
Samba's internal databases, which are often TDB files, are stored by default in the directory specified by the `lock directory` parameter in `smb.conf`, which corresponds to the `LOCKDIR` variable in the `smbd -b` output. These TDB files include various dynamic data necessary for Samba's operation.
WINS name cache files are typically stored in a directory defined by the `wins directory` parameter, not `LOCKDIR`, and are managed by the `nmbd` daemon.
Samba print spool files are generally located in a dedicated spool directory, often `/var/spool/samba` or similar, which is separate from the `LOCKDIR`.
Concept tested: Samba TDB file storage location
Source: https://www.samba.org/samba/docs/current/manpages/tdbbackup.8.html
Topics
Community Discussion
No community discussion yet for this question.