Linux Permissions

owner-user owner-group other
read write execute
Encoded in Bits: 3 x 3 Bits = 9 Bits
e.g. rwxr-xr-x

For directories:

  • read: view the directories contents
  • write: create or delete files within the directory
  • execute: traverse (cd) into the directory
  • r--: 4
  • -w-: 2
  • --x: 1
  • r-x: 5
  • rwx: 7

Ref: Linux File Permission Confusion pt 2