nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #318

LFCS Question #318: Real Exam Question with Answer & Explanation

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

Explanation

The LOCKDIR parameter in Samba defines the directory where TDB (Trivial Database) files and other critical internal data files are stored.

Common mistakes.

  • A. Samba configuration files, such as smb.conf, are typically located in /etc/samba and not within the LOCKDIR.
  • C. 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.
  • D. 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

Reference. 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 PracticeBrowse All LFCS Questions