File Permission Structure

File Permission Structure An architecture diagram generated by Archify. ls -l · 10-character string · Architecture component ls -l 10-character string File type · char 1 · - d l c b · Four fields of the permission string File type char 1 · - d l c b Owner permissions · chars 2–4 · r w x · Four fields of the permission string Owner permissions chars 2–4 · r w x Group permissions · chars 5–7 · r w x · Four fields of the permission string Group permissions chars 5–7 · r w x Others' permissions · chars 8–10 · r w x · Four fields of the permission string Others' permissions chars 8–10 · r w x drwxr-xr-- · example output · Example drwxr-xr-- example output d · Directory · Example d Directory rwx · Owner · all permissions · Example rwx Owner · all permissions r-x · Group · read, execute · Example r-x Group · read, execute r-- · Others · read only · Example r-- Others · read only example Four fields of the permission string Example Legend Example File type rwx bits ls -l

File type (character 1)

  • • - : regular file
  • • d : directory
  • • l : symbolic link
  • • c : character device
  • • b : block device

Permission triplet (owner · group · others)

  • • r : read
  • • w : write
  • • x : execute
  • • - : permission not granted

Example — drwxr-xr--

  • • d → directory
  • • rwx → owner: read, write, execute (all permissions)
  • • r-x → group: read, execute
  • • r-- → other users: read only