Mission 334

Service account ownership

Relate a web file owner to the identity used by its service.

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

Inspect the web file owner

Run stat /srv/www/index.html.

stat /srv/www/index.html
Inspect the service account

Run id www-data.

id www-data
Relate ownership to the service

Run systemctl status nginx.

systemctl status nginx
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with matching service identities with file ownership.

Hint

Start with stat /srv/www/index.html, inspect the result, then continue in order.

Why it matters

Matching service identities with file ownership helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves matching service identities with file ownership.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

stat <path>

Show lab file details.

systemctl status <service>

Inspect simulated service status.