Mission 18

Permission review

Review sensitive training SSH and web files with long listings and metadata.

Permissions and users
9 minutes Beginner Lesson 18 of 360
ls -lstatgrep
Lesson 18 of 360 0/360 lessons 0/17 missions Permissions and users · 9 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 9 minutes

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

List SSH config

Run ls -l /etc/ssh.

ls -l /etc/ssh
Inspect sshd_config

Run stat /etc/ssh/sshd_config.

stat /etc/ssh/sshd_config
Check root login

Run grep PermitRootLogin /etc/ssh/sshd_config.

grep PermitRootLogin /etc/ssh/sshd_config
Lesson support

What to notice while you play.

Objective

Inspect sensitive file modes without modifying them.

Hint

Compare /etc/ssh/sshd_config and /srv/www/index.html.

Why it matters

Reviews find risky permissions before they become incidents.

Common mistakes
  • Changing sensitive files as a first step.
  • Ignoring owner/group labels.
Reference

Commands in this lesson.

ls [-la] [path]

List lab files and folders.

grep [-i] <text> <file>

Find literal text inside a file.

stat <path>

Show lab file details.

lsof

Show simulated files and sockets opened by services.