Courseiva
File Sharing and SambamediumMultiple ChoiceObjective-mapped

LPIC-2 File Sharing and Samba Practice Question

Exhibit

Samba version 4.15.9
PID     Username     Group        Machine                                   Protocol Version  Encryption           Signing              
----------------------------------------------------------------------------------------------------------------------------------------
12345   johndoe      domain users 192.168.1.100 (ipv4:192.168.1.100:49152)  SMB3_11           -                    partial(AES-128-CMAC)

Service      pid     Machine       Connected at                     Encryption   Signing     
-----------------------------------------------------------------------------------------
share1       12345   192.168.1.100 Mon Oct 25 10:30:45 2024        -            partial      

Locked files:
Pid          Uid        DenyMode   R/W        Oplock           SharePath   Name    Time
-----------------------------------------------------------------------------------------
12345        1002       DENY_NONE  RDONLY     NONE             /srv/samba/share1   report.txt   Mon Oct 25 10:35:00 2024

Refer to the exhibit. What does the output indicate about the user John Doe's access to the file report.txt?

⚠ Common exam trap

LPI often tests the distinction between lock type and deny mode, where candidates confuse a read lock with no deny mode for an exclusive lock or assume any lock prevents all access, but the deny mode specifically controls what other clients can do.

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

The user has a read lock with no deny mode.

The output shows that John Doe has a read lock on report.txt with no deny mode, meaning other processes can still read the file while he holds the lock. This is indicated by the lock type 'R' (read) and the absence of a deny mode (deny mode 'NONE'). In Samba, a read lock with no deny mode allows concurrent read access but prevents write access from other clients.

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 user has a lease lock.

    Why it's wrong here

    Incorrect; Oplock is NONE, not a lease.

  • The user has a read lock with no deny mode.

    Why this is correct

    Correct; DENY_NONE and RDONLY indicate a non-exclusive read lock.

  • The file is opened for writing.

    Why it's wrong here

    Incorrect; R/W is RDONLY.

  • The user has an exclusive write lock.

    Why it's wrong here

    Incorrect; DenyMode is DENY_NONE and R/W is RDONLY.

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 →

How Courseiva writes practice questions · Editorial policy

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.