LPIC-2 File Sharing and Samba Practice Question
Exhibit
Refer to the exhibit. [global] workgroup = EXAMPLE security = user passdb backend = tdbsam [data] path = /srv/samba/data valid users = @staff write list = @admin read only = yes
A user in group staff (but not admin) tries to write to the share. What is the most likely error?
⚠ Common exam trap
Test-takers frequently confuse network-level errors (bad network name, object not found) with authorization errors, assuming any failure to write must produce a specific NT_STATUS code, when in practice Samba often returns a generic 'cannot write' message at the client level.
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
✓
Connection successful but cannot write
The user is in group 'staff' but not 'admin', and the Samba share configuration likely has 'write list = @admin' or similar, restricting write access to the admin group. The connection succeeds (the share is visible and readable), but the write operation fails silently or returns a permission error at the filesystem level, not a network-level error. This matches the scenario where authentication passes but authorization for writing fails.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
NT_STATUS_BAD_NETWORK_NAME
Why it's wrong here
Indicates share not found, but share exists.
- ✗
NT_STATUS_ACCESS_DENIED
Why it's wrong here
Access denied would occur if not in valid users; but here valid includes staff.
- ✓
Connection successful but cannot write
Why this is correct
The user can connect (valid includes staff) but write fails due to read only and no write list.
- ✗
NT_STATUS_OBJECT_NAME_NOT_FOUND
Why it's wrong here
Indicates path not found.
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.