Mission 17

Owners and groups

Practice simulated chown and chgrp changes while checking account context.

Permissions and users
9 minutes Beginner Lesson 17 of 360
whoamigroupschgrpstat
Lesson 17 of 360 0/360 lessons 0/17 missions Permissions and users · 9 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 9 minutes

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

Show groups

Run groups.

groups
Change simulated group

Run chgrp www-data /srv/www/index.html.

chgrp www-data /srv/www/index.html
Verify group

Run stat /srv/www/index.html.

stat /srv/www/index.html
Lesson support

What to notice while you play.

Objective

Learn owner/group labels without touching real permissions.

Hint

Check groups before changing a simulated group.

Why it matters

Group ownership is a common way teams share access.

Common mistakes
  • Changing a group you have not checked.
  • Assuming owner and group are the same.
Reference

Commands in this lesson.

chgrp <group> <path>

Change a simulated file group label.

stat <path>

Show lab file details.

whoami|id|groups

Inspect the learner account.