// PERMISSIONS PUZZLE

Set the correct chmod permissions for each scenario

Score
0
Streak
0
Level
1

Select Difficulty

How chmod Works

Linux permissions use 3 digits: Owner Group Other

  • 4 = read (r)
  • 2 = write (w)
  • 1 = execute (x)

Add them up: 7 = rwx, 6 = rw-, 5 = r-x, 4 = r--

Example: 755 = rwxr-xr-x (owner=rwx, group=r-x, other=r-x)

Special Bits (4-digit permissions)

  • setuid (4) - Run as the file's owner, not the user (e.g., 4755)
  • setgid (2) - Run as file's group; on directories, new files inherit group (e.g., 2775)
  • sticky bit (1) - On directories: users can only delete their own files (e.g., 1777 for /tmp)
🏆
Victory!
You've mastered Permissions!