Courseiva
File Sharing and SambamediumMultiple ChoiceObjective-mapped

LPIC-2 File Sharing and Samba Practice Question

Exhibit

Refer to the exhibit.

[global]
workgroup = MYGROUP
server string = Samba Server
security = user

[share1]
path = /srv/samba/share1
valid users = alice, bob
read only = no

[share2]
path = /srv/samba/share2
valid users = @staff
read only = yes

[share3]
path = /srv/samba/share3
guest ok = yes
read only = no

Given the smb.conf exhibit, which share(s) allow write access to user 'alice' who is a member of the 'staff' group?

⚠ Common exam trap

Test-takers frequently assume that being a member of the 'staff' group grants write access to all shares, but they must check each share's specific 'write list' and 'valid users' directives, as share3 explicitly restricts access to bob only.

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

share1 only

In the smb.conf exhibit, share1 has 'write list = @staff' which grants write access to all members of the staff group, including user alice. share2 has 'read only = yes' and no write list, so it is read-only for everyone. share3 has 'valid users = bob' and 'write list = bob', so only bob can write; alice is not listed and is not in the bob group, so she has no write access.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • share1 and share3

    Why it's wrong here

    Although share1 allows write access to alice via @staff, share3 restricts write access to bob only, so alice cannot write to share3.

  • share3 only

    Why it's wrong here

    Share3 specifies 'valid users = bob' and 'write list = bob', so only bob has write access; alice is not authorized.

  • share1 only

    Why this is correct

    Share1 has 'write list = @staff', granting write access to all members of the staff group, including alice. share2 is read-only and share3 is restricted to bob.

  • share2 only

    Why it's wrong here

    Share2 is set to 'read only = yes' with no write list, making it read-only for all users.

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.