nerdexam
LPI

300-300 · Question #60

Which of the following sections must exist in a Samba configuration file in order to create dynamic shares for printers?

The correct answer is D. [printers]. [printers] is the special Samba section that enables dynamic printer share creation - when present, Samba automatically creates a share for every printer defined in the system's printcap database, without requiring individual [printername] sections. [print$] (A) is a real Samba…

300.4 File Sharing

Question

Which of the following sections must exist in a Samba configuration file in order to create dynamic shares for printers?

Options

  • A[print$]
  • B[printcap]
  • C[printer]
  • D[printers]
  • E[spooler]

How the community answered

(50 responses)
  • A
    2% (1)
  • B
    2% (1)
  • D
    94% (47)
  • E
    2% (1)

Explanation

[printers] is the special Samba section that enables dynamic printer share creation - when present, Samba automatically creates a share for every printer defined in the system's printcap database, without requiring individual [printername] sections. [print$] (A) is a real Samba section, but it serves a different purpose: hosting printer drivers for Windows clients, not defining printer shares themselves. [printcap] (B) and [spooler] (E) are not valid Samba section names at all. [printer] (C) is similarly invalid - the section name must be the plural [printers] to trigger the dynamic behavior. Memory tip: Think "printers" (plural) = "all printers automatically" - the plural form signals that Samba should handle the entire collection dynamically, whereas a singular name like [printer] would just be a regular custom share called "printer."

Topics

#Samba configuration#Printer shares#smb.conf sections#CUPS printing

Community Discussion

No community discussion yet for this question.

Full 300-300 Practice