Mission 16

Permissions

Read and change simulated modes and ownership without risking real files.

Permissions and users
11 minutes Beginner Lesson 16 of 360
ls -lchmodchownstat
Lesson 16 of 360 0/360 lessons 0/17 missions Permissions and users · 11 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 11 minutes

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

Check script mode

Run ls -l /home/learner/scripts.

ls -l /home/learner/scripts
Make the script executable

Run chmod 755 /home/learner/scripts/hello.sh.

chmod 755 /home/learner/scripts/hello.sh
Change simulated ownership

Run chown admin:admin /srv/www/index.html.

chown admin:admin /srv/www/index.html
Lesson support

What to notice while you play.

Objective

Inspect and change simulated mode and owner labels.

Hint

Use ls -l before chmod so you can compare the result.

Why it matters

Permissions protect files, but changes should be deliberate.

Common mistakes
  • Making everything 777.
  • Changing ownership without recording why.
Reference

Commands in this lesson.

ls [-la] [path]

List lab files and folders.

chmod <mode> <path>

Change a simulated numeric permission mode.

chown <user:group> <path>

Change simulated owner/group labels.

stat <path>

Show lab file details.

lsof

Show simulated files and sockets opened by services.