Lion Cipher Lab

Grant one extra user access with POSIX ACLs (fine-grained permissions beyond chmod)

Why it matters

Standard Unix permissions give you exactly three doors: the owner, one group, and everyone else. The moment you need to let ONE extra person read a file without also handing it to the whole group — or to the world — classic chmod can't do it, and the lazy fix is almost always 'chmod 777' or 'add them to the group,' both of which quietly over-grant. POSIX ACLs are the right-sized tool: they attach per-user and per-group rules directly to a file, so you grant precisely the access needed and nothing more. Knowing when (and when not) to reach for them is core identity-and-access work on any Linux…

What you'll learn

Steps in this lab

  1. The wall chmod hits (and why ACLs exist)
  2. Build a safe sandbox (and keep a way back in)
  3. Prove the limit: Alice can't read it, and chmod can't fix it cleanly
  4. getfacl: read what's really there
  5. setfacl: grant exactly one user, exactly read
  6. The mask gotcha: why a later chmod can silently shrink an ACL
  7. Default ACLs: make a directory hand down rules automatically
  8. Clean up, back up, and restore ACLs
  9. The judgment: ACLs vs. groups — and when NOT to use ACLs

Open the full interactive lab →