Mission 73

Public and private files

Compare web-readable and private-note permissions.

Permissions and users
8 minutes Admin Lesson 73 of 360
statchmod
Lesson 73 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 public file

Run stat /srv/www/index.html.

stat /srv/www/index.html
Set public mode

Run chmod 644 /srv/www/index.html.

chmod 644 /srv/www/index.html
Set private note

Run chmod 600 /home/learner/notes/todo.txt.

chmod 600 /home/learner/notes/todo.txt
Lesson support

What to notice while you play.

Objective

Practice choosing modes based on file purpose.

Hint

Use 644 for public web content and 600 for private notes.

Why it matters

Security is context-sensitive; not every file should be locked the same way.

Common mistakes
  • Making public web files unreadable.
  • Leaving private notes too open.
Reference

Commands in this lesson.

chmod <mode> <path>

Change a simulated numeric permission mode.

stat <path>

Show lab file details.