Question 256 of 511
File Sharing and SambaeasyMultiple ChoiceObjective-mapped

Quick Answer

The answer is the configuration using `valid users = +staff` and `write list = @managers`. This works because `valid users = +staff` restricts share access exclusively to members of the 'staff' Unix group (the `+` prefix denotes a group), while `write list = @managers` overrides the default read-only setting for members of the 'managers' group (the `@` prefix also indicates a group), granting them full read/write control. On the LPIC-2 exam, this tests your understanding of Samba’s layered permission model, where `valid users` controls entry and `write list` selectively elevates write access—a common trap is confusing the `+` and `@` prefixes, but both refer to Unix groups in Samba. The search intent for "Samba share read-only staff full control managers" reflects this exact scenario, often appearing in performance-based items where you must combine directives without using `read only = no`. Memory tip: think of `valid users` as the bouncer at the door, and `write list` as the VIP pass for full control.

LPIC-2 File Sharing and Samba Practice Question

This LPIC-2 practice question tests your understanding of file sharing and samba. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A system administrator wants to configure a Samba share that grants read-only access to the 'staff' group and full control to the 'managers' group. Which share configuration achieves this?

Question 1easymultiple choice
Full question →

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

[share] path = /srv/share valid users = +staff write list = @managers

Option A is correct because the `valid users = +staff` directive restricts access to members of the 'staff' group (the `+` prefix means a Unix group), while the `write list = @managers` directive grants write access to members of the 'managers' group (the `@` prefix also means a Unix group). This combination ensures that 'staff' members have read-only access by default, and 'managers' members have full control (read/write).

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • [share] path = /srv/share valid users = +staff write list = @managers

    Why this is correct

    Read-only for staff, write for managers

    Related concept

    Read the scenario before looking for a memorised answer.

  • [share] path = /srv/share valid users = @managers write list = @managers

    Why it's wrong here

    Only managers can access, not staff

  • [share] path = /srv/share valid users = +staff write list = +managers

    Why it's wrong here

    Invalid syntax: + instead of @

  • [share] path = /srv/share valid users = @staff write list = @staff

    Why it's wrong here

    Gives write access to staff, not managers

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is confusing the `+` and `@` prefixes for group references in Samba, leading candidates to incorrectly apply `+` in `write list` or `@` in `valid users` without understanding the subtle differences in their behavior.

Detailed technical explanation

How to think about this question

In Samba, the `valid users` and `write list` parameters can reference Unix groups using either the `@` prefix or the `+` prefix, but the `+` prefix is typically used with `valid users` to indicate a group that is not in the NIS netgroup map. The `write list` parameter overrides the default read-only setting for specified users or groups, and it respects the `@` prefix for groups. This configuration is commonly used in mixed-access file shares where different departments require different permission levels.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related LPIC-2 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free LPIC-2 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this LPIC-2 question test?

File Sharing and Samba — This question tests File Sharing and Samba — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: [share] path = /srv/share valid users = +staff write list = @managers — Option A is correct because the `valid users = +staff` directive restricts access to members of the 'staff' group (the `+` prefix means a Unix group), while the `write list = @managers` directive grants write access to members of the 'managers' group (the `@` prefix also means a Unix group). This combination ensures that 'staff' members have read-only access by default, and 'managers' members have full control (read/write).

What should I do if I get this LPIC-2 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.