nerdexam
CompTIA

LX0-104 · Question #600

In the smb.conf configuration file, which pair may be used as a boolean value?

The correct answer is D. Any of the above.. In the Samba smb.conf configuration file, parameters expecting a boolean value are flexible and will accept yes/no, true/false, or 0/1 as valid representations.

Essential System Services

Question

In the smb.conf configuration file, which pair may be used as a boolean value?

Options

  • Ayes/no
  • Btrue/false
  • C0/1
  • DAny of the above.

How the community answered

(56 responses)
  • A
    9% (5)
  • B
    2% (1)
  • C
    4% (2)
  • D
    86% (48)

Why each option

In the Samba `smb.conf` configuration file, parameters expecting a boolean value are flexible and will accept `yes/no`, `true/false`, or `0/1` as valid representations.

Ayes/no

While `yes/no` is a valid boolean pair, it is not the *only* valid pair.

Btrue/false

While `true/false` is a valid boolean pair, it is not the *only* valid pair.

C0/1

While `0/1` is a valid boolean pair, it is not the *only` valid pair.

DAny of the above.Correct

Samba's `smb.conf` parser is designed to be flexible and recognizes multiple common representations for boolean values. Therefore, `yes/no`, `true/false`, and `0/1` are all accepted and correctly interpreted as boolean true or false.

Concept tested: Samba boolean configuration values

Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html#BOOLEANS

Topics

#Samba configuration#smb.conf#boolean values

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice