Back to Labs
Linux File PermissionsEasy
Linux
👥 38 users15 min100 points

Change file permissions and understand the impact on access.

Instructions

  1. Create a new file called 'testfile'.
  2. Change its permissions to read-only for everyone.
  3. Try editing the file as a regular user.

Prerequisites

  • Basic Linux CLI
  • Understanding of chmod

Hints

  • Use 'touch testfile' to create a file.
  • Use 'chmod 444 testfile' to set read-only permissions.
  • Try 'nano testfile' as a regular user.

Try it yourself!