LPIC-2 File Sharing and Samba Practice Question
Exhibit
Refer to the exhibit. $ testparm -s Load smb config files from /etc/samba/smb.conf Processing section "[global]" Unknown parameter encountered: "security mode" Ignoring unknown parameter "security mode" Processing section "[share]" Loaded services file OK.
What is the most likely error in the configuration?
⚠ Common exam trap
Watch out — candidates often assume parameter names can include spaces or that 'security mode' is a valid multi-word parameter, when in fact Samba uses single-word parameters with underscores for multi-word concepts (e.g., 'security' not 'security mode').
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Parameter 'security mode' should be 'security'
The Samba configuration parameter for setting the security mode is simply 'security', not 'security mode'. The correct syntax is 'security = user' (or share, server, domain, ads). Using 'security mode' is an invalid parameter name that Samba will ignore or treat as an error, causing the configuration to fail or behave unexpectedly.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Section name '[share]' is invalid
Why it's wrong here
Section name is valid.
- ✗
Case sensitivity of parameter names
Why it's wrong here
Parameter names are case-insensitive.
- ✓
Parameter 'security mode' should be 'security'
Why this is correct
The correct parameter is 'security', not 'security mode'.
- ✗
Missing quotation marks around comment
Why it's wrong here
No comment is in the error.
Go deeper
Related to this question
About these practice questions
This LPIC-2 question is part of Courseiva's 507-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LPIC-2 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-2 exam.