MYSYSAD · Kernel Simulator

🐧 Path Traversal & Permission Simulator

Simulate how the Linux kernel evaluates EACCES across every directory in a path. Pinpoint the exact node causing Permission Denied.

POSIX.1-2017 §4.4 DAC Model
Process Context Who is knocking?
Paste real values from the server (namei -l and id)

On the server, run namei -l /full/path/to/file and id www-data (your service’s user), then paste both here. Every step fills in with its real owner, group and mode, and the user with all its groups.

Presets:
Directory Tree
Common Permission Patterns
755
rwxr-xr-x
Standard directory
750
rwxr-x---
Owner+group only
700
rwx------
Owner only
711
rwx--x--x
Traverse only
644
rw-r--r--
Standard file
600
rw-------
Private file
640
rw-r-----
Owner+group read
777
rwxrwxrwx
⚠ World-writable
Evaluates POSIX DAC rules across every node in the path tree above. Press Ctrl+Enter to run.
Simulation Results
Kernel Traversal Log
Share MySysAd

⚠️ IMPORTANT DISCLAIMER: The tools and scripts on this site are provided "AS IS" for educational purposes.

Review destructive commands before executing. By using this site, you assume all risk and agree to our Full Terms of Service.

Find the folder that blocks access

To open /var/www/site/index.html, a process needs execute permission on every folder along the way, not just read permission on the file. One locked-down parent folder, often a home directory, causes “Permission denied” or a 403 even when the file looks fine. Enter the user, group and path, and the simulator shows exactly which step fails.

Common questions

Why does nginx return 403 Forbidden when the file permissions look right?

The nginx worker user (www-data or nginx) needs execute (x) permission on every directory in the path. A home directory with mode 700 or 750 blocks it. The error log shows (13: Permission denied). Give the directory o+x, or better, serve files from a folder like /srv/www. On RHEL-based systems, also check SELinux labels.

How do I see permissions for every folder in a path?

namei -l /var/www/site/index.html lists the owner, group and mode of each step. To test as the service user, run sudo -u www-data test -r /var/www/site/index.html && echo ok.

What do read, write and execute mean on a directory?

Read lets you list the names inside, write lets you create, delete and rename entries, and execute lets you pass through it to reach what’s inside. That’s why a folder with x but no r still lets you open a file whose name you know.

What does Apache’s “search permissions are missing on a component of the path” mean?

The same problem: some folder in the path lacks execute permission for the Apache user. Find it with namei -l and add x for that user or group.

Why do I still get permission denied as root or with correct modes?

Something else is in the way: SELinux or AppArmor, ACLs (check getfacl), a filesystem mounted read-only or with noexec, or an immutable flag (lsattr). The SELinux Translator explains SELinux denials.

Related tools: SELinux & AppArmor Translator · Nginx Location Tester · User & sudo Builder · All tools A–Z