Skip to main content
Module 4 · Lesson 1 of 28/11 in the course~18 min
Module lessons (1/2)

Managing permissions (chmod)

Lesson preview5 hands-on exercises readyLinux Terminal · Module 4 — Permissions and Security

Read the rwxrwxrwx notation and modify read, write, and execute permissions using chmod.

What you'll learn in this lesson

  • Interpret the permission string of ls -l (e.g. -rwxr-xr-x) distinguishing the three scopes User (u), Group (g) and Others (o).
  • Calculate any octal permission by adding the binary weights r = 4, w = 2, x = 1 for each of the three digits (755, 644, 600, 700).
  • Apply precise changes with chmod in both octal and symbolic notation (u+x, g-w, a+x) following the principle of least privilege.

Overview

Every file and folder on a multi-user Linux system carries with it a 9-bit permission mask organized into three triplets: owner (u), group (g), and all other users (o). Understanding how to translate the triplet into octal eliminates any errors like Permission denied.

By adding the weights for each category you obtain the most used combinations in production: 7 = rwx (4+2+1), 6 = rw- (4+2), 5 = r-x (4+1), 4 = r-- (4), 0 = --- (0).

Sections covered in this lesson

  1. 1The octal grid (4 + 2 + 1) is symbolic
  2. 2Progressive examples
  3. 3Practical exercises
  4. 4Quick check
Pro Lesson · Module 4 — Permissions and Security

Unlock "Managing permissions (chmod)" and the full Linux Terminal curriculum

Read the rwxrwxrwx notation and modify read, write, and execute permissions using chmod.

Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in Linux Terminal plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.