Permission Denied Triage

Explain "Permission denied" when the mode bits look right by walking the layers in order and stopping at the first that denies: namei -l on the whole path (every parent needs x), the real uid, gid and supplementary groups of the running PID, ACLs, file attributes (immutable, append-only), mount options (noexec, nosuid, ro), capabilities and no_new_privs, systemd sandbox directives, then SELinux or AppArmor. SELinux via ausearch and audit2why, fixed with restorecon, semanage fcontext or a boolean, never setenforce 0; AppArmor via complain mode and aa-logprof. Use for "it is 777 and still denied", "works as root but not as the service user", "SELinux blocking" or "cannot execute from /tmp". Not for choosing the policy (host-hardening), cloud IAM (access-review), a unit failing to start (systemd-unit-failure) or ssh login refusals (ssh-access-debugging).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 5131938f21

Frequently asked questions

npx get-skill add greenblacked/permission-denied-triage