Courseiva
File Sharing and SambahardMultiple SelectObjective-mapped

LPIC-2 File Sharing and Samba Practice Question

A Samba administrator needs to configure a share that allows only the user 'alice' and the group 'developers' to read and write files. Others should have no access. Which two parameters should be set in the share definition? (Choose two.)

⚠ Common exam trap

A common mix-up: candidates confuse 'valid users' with 'write list' or think 'invalid users' can be used to deny everyone except the listed users, but 'invalid users' explicitly blocks those users rather than allowing them, and 'write list' alone does not restrict access to only those users.

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

valid users = alice, @developers

The 'valid users' parameter restricts access to only the specified users and groups, so setting 'valid users = alice, @developers' ensures only alice and members of the developers group can connect to the share. The 'write list' parameter grants write access to the listed users and groups, overriding any read-only setting; combining it with 'valid users' ensures that alice and the developers group have both read and write permissions, while all others are denied access entirely.

Answer analysis

Option-by-option breakdown

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

  • valid users = alice, @developers

    Why this is correct

    Restricts access to alice and members of the developers group.

  • invalid users = alice, @developers

    Why it's wrong here

    This would deny access to alice and developers.

  • force user = alice

    Why it's wrong here

    This forces all connections to the share to run as alice, but does not restrict access.

  • write list = alice, @developers

    Why this is correct

    Grants write access to alice and developers.

  • read list = alice, @developers

    Why it's wrong here

    This would give them read-only access, not write.

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.