Mission 77

Executable scripts

Read and mark a training deploy script executable.

Permissions and users
8 minutes Admin Lesson 77 of 360
catchmodls
Lesson 77 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.

Read deploy script

Run cat scripts/deploy.sh.

cat scripts/deploy.sh
Make executable

Run chmod 755 scripts/deploy.sh.

chmod 755 scripts/deploy.sh
List script

Run ls -l scripts/deploy.sh.

ls -l scripts/deploy.sh
Lesson support

What to notice while you play.

Objective

Review script content before changing mode.

Hint

Cat the script before chmod 755.

Why it matters

Executable scripts can change systems quickly in real life.

Common mistakes
  • Making unread scripts executable.
  • Confusing executable with trustworthy.
Reference

Commands in this lesson.

ls [-la] [path]

List lab files and folders.

cat <file>

Print text file contents.

chmod <mode> <path>

Change a simulated numeric permission mode.

lsof

Show simulated files and sockets opened by services.