Mission 75

Group collaboration

Create a shared lab note and set group-oriented metadata.

Permissions and users
8 minutes Admin Lesson 75 of 360
mkdirtouchchgrpchmod
Lesson 75 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 shared folder

Run mkdir lab/shared.

mkdir lab/shared
Create shared file

Run touch lab/shared/note.txt.

touch lab/shared/note.txt
Set group

Run chgrp learners lab/shared/note.txt.

chgrp learners lab/shared/note.txt
Set shared mode

Run chmod 664 lab/shared/note.txt.

chmod 664 lab/shared/note.txt
Lesson support

What to notice while you play.

Objective

Use group and mode together.

Hint

Use chgrp learners, then chmod 664.

Why it matters

Collaboration often depends on group write access.

Common mistakes
  • Changing mode but not group.
  • Granting too much access for convenience.
Reference

Commands in this lesson.

mkdir <name>

Create a folder.

touch <file>

Create an empty file.

chmod <mode> <path>

Change a simulated numeric permission mode.

chgrp <group> <path>

Change a simulated file group label.