LFCS · 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 parameter in Samba defines the directory where TDB (Trivial Database) files and other critical internal data files are stored.
Question
Options
- AConfiguration files
- BTDB files
- CWINS name cache files
- DSamba print spool files
How the community answered
(43 responses)- A7% (3)
- B86% (37)
- C5% (2)
- D2% (1)
Why each option
The `LOCKDIR` parameter in Samba defines the directory where TDB (Trivial Database) files and other critical internal data files are stored.
Samba configuration files, such as `smb.conf`, are typically located in `/etc/samba` and not within the `LOCKDIR`.
The `LOCKDIR`, as indicated by the `smbd -b | grep LOCKDIR` command, specifies the location for Samba's internal data files, which are predominantly TDB (Trivial Database) files. These TDBs store vital information like share locks, user and group mappings, and browse lists.
While some WINS data might be stored in TDBs within the `LOCKDIR`, `WINS name cache files` are a specific category, and the `LOCKDIR` broadly refers to all TDB files, which are its primary content.
Samba print spool files are generally stored in a separate, dedicated spool directory, typically `/var/spool/samba`, not the `LOCKDIR`.
Concept tested: Samba LOCKDIR contents
Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.