nerdexam
Linux_Foundation

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.

Submitted by emma.c· Apr 18, 2026Operation of Running Systems

Question

Which files will be stored inside the directory specified below? # smbd -b |grep LOCKDIR LOCKDIR: /var/cache/samba

Options

  • AConfiguration files
  • BTDB files
  • CWINS name cache files
  • DSamba print spool files

How the community answered

(43 responses)
  • A
    7% (3)
  • B
    86% (37)
  • C
    5% (2)
  • D
    2% (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.

AConfiguration files

Samba configuration files, such as `smb.conf`, are typically located in `/etc/samba` and not within the `LOCKDIR`.

BTDB filesCorrect

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.

CWINS name cache files

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.

DSamba print spool files

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

#Samba#TDB files#File System Hierarchy#Caching

Community Discussion

No community discussion yet for this question.

Full LFCS Practice