Question 429 of 513
User and Group ManagementhardMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is the command sequence `chown root:projectteam /project; chmod 2770 /project; setfacl -d -m o::---` because it establishes a shared directory with group inheritance and file ownership restrictions by combining the SGID bit with a default ACL. The SGID bit (represented by the 2 in 2770) ensures that any new files or subdirectories automatically inherit the group `projectteam`, while the 770 permissions grant full read, write, and execute access to the group but deny others. The default ACL `setfacl -d -m o::---` then strips all permissions for "other" users on newly created files, which enforces that only the file owner can modify their own files—group members can create and delete files but cannot edit each other’s work. On the LFCS exam, this scenario tests your understanding of how SGID and ACLs work together to solve real-world multi-user collaboration requirements; a common trap is forgetting that `chmod 2770` alone does not prevent group members from modifying each other’s files. Memory tip: think "SGID for group stickiness, default ACL for ownership lockiness."

LFCS User and Group Management Practice Question

This LFCS practice question tests your understanding of user and group management. 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.

An administrator needs to set up a shared directory /project for the group 'projectteam' (GID 5000). All members of the group should be able to create and delete files, but only the file owner can modify their own files. The directory should also ensure that new files inherit the group ownership. Which set of commands achieves this?

Question 1hardmultiple 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

chown root:projectteam /project; chmod 2770 /project; setfacl -d -m o::--- /project

Option B is correct because it sets the SGID bit (2770) so new files inherit the group 'projectteam', grants rwx to the group, and uses a default ACL with `setfacl -d -m o::---` to remove 'other' permissions, ensuring only the file owner can modify their own files while group members can create/delete but not modify others' files.

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.

  • chown root:projectteam /project; chmod 2775 /project; setfacl -m g:projectteam:rwx /project

    Why it's wrong here

    Default ACL not set, so new files may not inherit group permissions.

  • chown root:projectteam /project; chmod 2770 /project; setfacl -d -m o::--- /project

    Why this is correct

    SGID (2) inherits group; 770 gives group rwx; default ACL denies others.

    Related concept

    Read the scenario before looking for a memorised answer.

  • chown root:projectteam /project; chmod 2775 /project

    Why it's wrong here

    Sticky bit (1) prevents deletion of others' files, which is not desired.

  • chown root:projectteam /project; chmod 1770 /project; setfacl -m m::rwx /project

    Why it's wrong here

    Sticky bit (1) prevents deletion; mask not inherited.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Linux Foundation often tests the distinction between SGID (2xxx) and sticky bit (1xxx), and candidates confuse them, thinking the sticky bit ensures group inheritance, or they overlook that removing 'other' permissions is necessary to prevent unauthorized access.

Detailed technical explanation

How to think about this question

The SGID bit (chmod 2xxx) on a directory causes new files and subdirectories to inherit the group ID of the directory, not the creating user's primary group, which is essential for shared project spaces. Default ACLs (`setfacl -d`) define permissions that are automatically applied to new files, and setting `o::---` ensures that 'others' have no access, while the group's rwx allows members to create/delete but not modify others' files due to the default file creation mask (umask) and the fact that only the file owner can change permissions or content without ACL overrides. In practice, this setup is common for collaborative directories where audit trails require owner accountability.

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 security administrator must allow nursing staff to reach a patient records server while blocking access from the guest Wi-Fi VLAN. After applying an extended ACL, traffic is still blocked from nursing workstations. The ACL was applied outbound instead of inbound on the wrong interface. Questions like this test ACL direction and placement rules.

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 LFCS 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 LFCS 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 LFCS question test?

User and Group Management — This question tests User and Group Management — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: chown root:projectteam /project; chmod 2770 /project; setfacl -d -m o::--- /project — Option B is correct because it sets the SGID bit (2770) so new files inherit the group 'projectteam', grants rwx to the group, and uses a default ACL with `setfacl -d -m o::---` to remove 'other' permissions, ensuring only the file owner can modify their own files while group members can create/delete but not modify others' files.

What should I do if I get this LFCS 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

Same concept, more angles

1 more ways this is tested on LFCS

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A system administrator needs to ensure that all users in the 'developers' group have read and write access to a shared project directory /project/data, but new files created in that directory should belong to the 'developers' group automatically. Which command sequence achieves this goal?

medium
  • A.setfacl -m g:developers:rwx /project/data && chmod 2775 /project/data
  • B.chown root:developers /project/data && chmod u+s /project/data
  • C.chmod g+s /project/data && chown root:developers /project/data
  • D.chown :developers /project/data && chmod g+s /project/data

Why D: Option D is correct because `chown :developers /project/data` changes the group ownership of the directory to 'developers', and `chmod g+s /project/data` sets the setgid bit on the directory. The setgid bit ensures that new files created inside inherit the directory's group ('developers') instead of the creator's primary group, and the group ownership gives all members of 'developers' read and write access based on the directory's permissions (e.g., 775).

Keep practising

More LFCS practice questions

Last reviewed: Jun 30, 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 LFCS practice question is part of Courseiva's free Linux Foundation 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 LFCS exam.