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.
Question
Options
- Ayes/no
- Btrue/false
- C0/1
- DAny of the above.
How the community answered
(56 responses)- A9% (5)
- B2% (1)
- C4% (2)
- D86% (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.
While `yes/no` is a valid boolean pair, it is not the *only* valid pair.
While `true/false` is a valid boolean pair, it is not the *only* valid pair.
While `0/1` is a valid boolean pair, it is not the *only` valid pair.
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
Community Discussion
No community discussion yet for this question.