Mission 68

Numeric modes

Set and inspect numeric file modes.

Permissions and users
8 minutes Admin Lesson 68 of 360
chmodstatls
Lesson 68 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 key mode

Run chmod 600 ~/.ssh/authorized_keys.

chmod 600 ~/.ssh/authorized_keys
Inspect key mode

Run stat ~/.ssh/authorized_keys.

stat ~/.ssh/authorized_keys
List SSH folder

Run ls -la ~/.ssh.

ls -la ~/.ssh
Lesson support

What to notice while you play.

Objective

Use chmod and stat on a sensitive file.

Hint

Try chmod 600 on authorized_keys.

Why it matters

SSH key files often require restrictive permissions.

Common mistakes
  • Making private files world-readable.
  • Changing mode without checking ownership.
Reference

Commands in this lesson.

ls [-la] [path]

List lab files and folders.

chmod <mode> <path>

Change a simulated numeric permission mode.

stat <path>

Show lab file details.

lsof

Show simulated files and sockets opened by services.