LPIC-2 File Sharing and Samba Practice Question
Exhibit
Refer to the exhibit. Output from smbstatus: Locked files: Pid DenyMode Access R/W Oplock SharePath Name 1234 DENY_WRITE RDONLY RDONLY NONE /srv/samba/share report.doc Service pid machine user connected_at share 1234 192.168.1.10 alice Thu Jan 25 10:30:00 2024
A user 'bob' is unable to save changes to report.doc. Based on the exhibit, what is the most likely reason?
⚠ Common exam trap
Many exam-takers confuse filesystem permissions (like chmod or ACLs) with SMB share-level locks, assuming a permission error when the real issue is a file lock held by another user.
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
✓
Alice has the file open with a deny-write lock.
The exhibit shows that Alice has the file open with a deny-write lock, which prevents any other user (including Bob) from writing to the file. In Samba, this is enforced by the share mode locking mechanism, where a deny-write share access request from Alice blocks subsequent write attempts by Bob until Alice closes the file.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The oplock is set to NONE causing conflicts.
Why it's wrong here
NONE means no oplock, not causing conflict; lock is explicit.
- ✗
Bob does not have permission on the filesystem.
Why it's wrong here
The issue is a lock, not filesystem permissions.
- ✓
Alice has the file open with a deny-write lock.
Why this is correct
DENY_WRITE mode prevents other users from opening the file with write access.
- ✗
The share is configured as read-only.
Why it's wrong here
No information about share read-only; the lock is per-file.
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.