Mission 332

Shared group directory

Prepare a group-owned workspace and inspect its collaboration mode.

Permissions and users
8 minutes Admin Lesson 332 of 360
mkdirchgrpchmodstat
Lesson 332 of 360 0/360 lessons 0/17 missions Permissions and users · 8 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 8 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Create a shared directory

Run mkdir lab/shared-review.

mkdir lab/shared-review
Assign the learner group

Run chgrp learners lab/shared-review.

chgrp learners lab/shared-review
Set the shared directory mode

Run chmod 2770 lab/shared-review.

chmod 2770 lab/shared-review
Inspect ownership and mode

Run stat lab/shared-review.

stat lab/shared-review
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with using group ownership for a shared directory.

Hint

Start with mkdir lab/shared-review, inspect the result, then continue in order.

Why it matters

Using group ownership for a shared directory helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves using group ownership for a shared directory.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

mkdir <name>

Create a folder.

chmod <mode> <path>

Change a simulated numeric permission mode.

chgrp <group> <path>

Change a simulated file group label.

stat <path>

Show lab file details.