LPIC-2 File Sharing and Samba Practice Question
A Samba share is configured with 'guest ok = yes'. What must also be configured to allow guest access?
⚠ Common exam trap
Candidates often assume 'guest ok = yes' alone is sufficient for guest access, overlooking the mandatory 'map to guest' directive that actually enables the mapping of unknown users to the guest account.
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
✓
map to guest = Bad User
When 'guest ok = yes' is set on a Samba share, the server still requires a mechanism to map unauthenticated or failed authentication attempts to the guest account. The 'map to guest = Bad User' directive tells Samba to treat any connection attempt with an invalid username as a guest connection, which is necessary for guest access to function. Without this mapping, clients presenting a non-existent or incorrect username will be rejected rather than being granted guest privileges.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
security = share
Why it's wrong here
This is a deprecated security mode and not required for guest access.
- ✓
map to guest = Bad User
Why this is correct
This parameter maps authentication failures to the guest account, enabling guest access.
- ✗
force user = nobody
Why it's wrong here
This forces the user but does not enable guest access.
- ✗
guest only = Yes
Why it's wrong here
This forces all connections to be treated as guest, but guest ok must also be set.
Go deeper
Related to this question
About these practice questions
One of 507 original LPIC-2 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.