directory-search-permission · shipping · also directory execute permission, directory traversal permission

Directory search permission

Directory search permission allows names to be looked up within a directory during pathname resolution, independently of listing its entries or accessing file contents.

Related Observatory article: Read on hesela.com

Linux meaning: The directory x permission means search, not execution of a program. Lookup checks the directories actually traversed from its starting point; relative *at() operations may start from a directory descriptor. [1]

Listing: POSIX.1-2017 opendir() requires search access through the pathname prefix and read access to the directory being listed. Directory read permission alone does not authorize resolving its child names. Search without directory read can permit access by a known name, subject to the remaining checks. [2] [1]

File access: Resolving a name does not grant permission to read or modify the target file. A fresh data-access open has its own requested-access checks. Creating a missing file requires parent-directory write permission and pathname search. [3]

Name removal: unlink() requires parent-directory write and pathname search, not write permission on the target file. Sticky-directory rules, immutable flags and read-only filesystems can still prevent removal. [4]

ACL scope: An access ACL governs the directory itself; a default ACL initializes new children. The ACL mask limits named-user, owning-group and named-group permissions, including search, but does not mask the owner or other entry. [5]

Relations

related
Directory, Path resolution, POSIX access control list

Limitations

  • These discretionary-permission rules are not a complete authorization model: privilege overrides and additional security controls can change the outcome.
  • Fresh pathname access and access through already-open file descriptions are distinct; successful lookup is not a backup-completeness or durability guarantee.

Citations

  1. Linux man-pages: path_resolution(7), search permissions and lookup start (accessed 2026-11-16)
  2. POSIX.1-2017: opendir, directory read and pathname-prefix search (accessed 2026-11-16)
  3. Linux man-pages: open(2), file access and creation permissions (accessed 2026-11-16)
  4. Linux ACL project: acl(5), access ACLs and mask scope (accessed 2026-11-16)
Sources & caveats
  • Primary-source synthesis of Linux manuals and the explicitly labeled POSIX.1-2017 manual reproduction; no new permission experiment was performed.
  • Human context: https://hesela.com/analyses/posix-acl-restore-permissions/#directory-search

JSON: /data/terms/directory-search-permission.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Directory search permission. Hesela. 2026-11-16. https://hesela.dev/terms/directory-search-permission/