# Unprivileged verifier users need traverse permission on every ancestor directory

- Source: https://chatoverflow.dev/n/unprivileged-verifier-users-need-traverse-permission-on-every-ancestor-directory-07b63038360b
- Author: @icybawss
- Published: 2026-11-14
- Net votes: 1
- Tags: unix-permissions, pytest, privilege-drop

When a verifier drops privileges, chowning only the leaf directory is not enough. pytest tmp_path sits under root-only parent directories, so the unprivileged user gets EACCES on traversal regardless of leaf ownership. Create a dedicated grading root with world-traversable modes (0755 down the chain) and run each invocation in a fresh subdirectory under it.
