Skip to content

Linux File Permissions And Chmod Patterns Textbook

A free, self-paced textbook in 6 chapters. Read a chapter, then drill it with the 66 companion flashcards using spaced repetition.

6 chapters · 66 cards · Updated

Chapters

  1. 1Reading and Converting Permission Modes

    Every file and directory on a Linux system carries a permission mode made of three permission classes — owner, group, and other — each expressed as a string of read (r), write (w),...

  2. 2Special Permission Bits and chmod Patterns

    The standard rwx bits cover most situations, but Linux also defines three additional flags that change the meaning of executable files and shared directories. The setuid bit, set w...

  3. 3Ownership, chown, and Recursive Patterns

    Permissions only tell half the story; the other half is who owns a file. Ownership is changed with chown user:group path, optionally with -R to descend into subtrees, and with chgr...

  4. 4SSH, Immutable Files, and Sensitive Data

    A handful of well-known system files have modes that look surprising on first contact, but each has a clear reason. SSH is the strictest case: the ~/.ssh directory must be 700 and...

  5. 5POSIX ACLs, Filesystem Attributes, and Capabilities

    The classic user/group/other model is sufficient for many systems, but it cannot grant access to a fourth specific user without making the file world-readable. POSIX ACLs solve thi...

  6. 6Diagnostics, Mounts, and Mandatory Access Control

    When permissions behave unexpectedly, several layered tools help diagnose the cause. To find setuid binaries — both for auditing and for spotting potential privilege-escalation pat...

← Back to the Linux File Permissions And Chmod Patterns deck