Mission 70

Owner review

Change simulated owner and group labels on a web file.

Permissions and users
8 minutes Admin Lesson 70 of 360
chownchgrpstat
Lesson 70 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.

Set owner

Run chown admin:www-data /srv/www/index.html.

chown admin:www-data /srv/www/index.html
Set group

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

chgrp www-data /srv/www/index.html
Inspect web file

Run stat /srv/www/index.html.

stat /srv/www/index.html
Lesson support

What to notice while you play.

Objective

Practice ownership labels without touching a real server.

Hint

Use chown admin:www-data, then chgrp www-data.

Why it matters

Owner and group mistakes can break deployments.

Common mistakes
  • Changing owner to a made-up user.
  • Forgetting the group after changing owner.
Reference

Commands in this lesson.

chown <user:group> <path>

Change simulated owner/group labels.

chgrp <group> <path>

Change a simulated file group label.

stat <path>

Show lab file details.