Mission 69

Directory modes

Review why private directories use tighter modes.

Permissions and users
7 minutes Admin Lesson 69 of 360
chmodstatls
Lesson 69 of 360 0/360 lessons 0/17 missions Permissions and users · 7 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 7 minutes

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

Set SSH folder mode

Run chmod 700 ~/.ssh.

chmod 700 ~/.ssh
Inspect SSH folder

Run stat ~/.ssh.

stat ~/.ssh
List SSH folder

Run ls -la ~/.ssh.

ls -la ~/.ssh
Lesson support

What to notice while you play.

Objective

Inspect and set a private directory mode.

Hint

Use chmod 700 ~/.ssh.

Why it matters

Sensitive config folders should not be casually readable.

Common mistakes
  • Only checking files, not their parent folders.
  • Using file-mode intuition for directories.
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.