Menu
Coddy logo textTech

Recap - Lock It Down

Part of the Fundamentals section of Coddy's Terminal journey — lesson 58 of 82.

challenge icon

Challenge

Easy

You have two files that need their permissions secured:

  • backup.sh - A script that should be executable by the owner, readable and executable by the group, but only readable by others (permission 754)
  • config.txt - A sensitive configuration file that should only be readable and writable by the owner, with no access for group or others (permission 600)

Use chmod with numeric mode to set the correct permissions on both files. Then display the permissions of both files using ls -l to verify your changes.

Your final output should show:

  • backup.sh with permissions -rwxr-xr--
  • config.txt with permissions -rw-------

Hint: Run chmod 754 backup.sh and chmod 600 config.txt, then use ls -l to display both files.

Try it yourself

Terminal

All lessons in Fundamentals