In this article
Inspect the folder and the file separately
Select the folder in Finder and press Command-I. Expand Sharing & Permissions to see the users and privileges shown there. Apple’s permission-setting guide documents this native starting point. Inspect before changing anything, especially when the folder belongs to an application or another person.
The familiar Finder labels are useful for everyday sharing. When you are diagnosing individual r, w and x bits in Terminal, however, distinguish the directory from the document inside it. A permission on one is not automatically the same permission on the other.
Use ls -ld "/path/to/folder" to inspect the directory itself. The -d matters: it keeps the listing focused on that item rather than requesting its contents. Then inspect the specific file with ls -l "/path/to/folder/known.txt". Replace both example paths; quote names containing spaces.
If the second command fails, record that result. Do not interpret the missing file details as proof that the file is gone. Access to a pathname also involves the directories leading to it.
| Operation | Permission question |
|---|---|
| Obtain names stored in a directory | Is directory read access available? |
| Enter or look up a known name through a directory | Is directory search access available? |
| Read the contents of the named file | Is the path accessible, and is the file readable? |
| Run a file as a program | Does that file have the required execution access? |
A directory’s x is a search permission
Apple’s File System Programming Guide distinguishes the effects of BSD permission bits on files and directories. A directory is not a program waiting to be executed. Its x permission allows access through it to names inside.
That distinction produces two initially surprising cases. A directory can reveal a name while preventing you from opening the named item. Conversely, a known pathname can work even when you cannot browse the directory’s list of names.
Neither case makes filenames a security boundary. A person or program may already know a name from an earlier listing, a configuration file or a predictable convention. Withholding directory read access is not equivalent to denying access to every file underneath it.
The University of Toronto’s permissions teaching example illustrates the same separation between directory listing, traversal and file reading. We checked the distinction on a Mac, including the actual exit status of its listing command.
Four controlled permission combinations
On November 13, 2026, we created a disposable folder containing one text file, known.txt, on macOS 15.7.5, Apple Silicon. We ran the checks as the ordinary owner account, without sudo. No existing document, application directory or shared folder was changed.
For each row, we tested /bin/ls -1 on the folder, /bin/cat on the exact file path, and cd into the folder. Group and other permission bits were zero. The numeric modes below describe this experiment, not settings to apply to your own folders.
| Folder owner access | File owner access | List names | Enter folder | Read known file |
|---|---|---|---|---|
Read only, 0400 | Read/write, 0600 | Name printed; command also failed | Denied | Denied |
Search only, 0100 | Read/write, 0600 | Denied | Allowed | Allowed |
Read/search, 0500 | Read/write, 0600 | Allowed | Allowed | Allowed |
Read/search, 0500 | None, 0000 | Allowed | Allowed | Denied |
The first row is particularly useful when reading a diagnostic log. ls printed known.txt, but also reported fts_read: Permission denied and returned exit status 1. A visible name did not make the command wholly successful. We retained both output streams and the exit status instead of recording that row simply as “listing works.”
The last row shows the other boundary: searching the directory did not override the file’s own missing read permission. Afterward we restored the fixture folder to 0700 and its file to 0600. The text’s SHA-256 remained unchanged.
This was a bounded owner-permission test, not a Finder UI test or a complete evaluation of ACLs, network shares and macOS privacy controls.
Diagnose the layer that actually failed
Start with the attempted operation: listing, entering, reading, writing or running. Then identify the exact path and the account performing it. A background helper may run in a different context from the Terminal session in which you inspected the file.
Check the relevant directory and file rather than replacing all permissions under a parent folder. If an @ or + appears beside the mode, use the separate explanation of extended attributes and access-control lists. Those markers add context beyond the nine ordinary permission bits.
A Locked checkbox is another distinct signal. Our guide to locked versus read-only files separates that setting from ordinary write access. Likewise, Files and Folders versus Full Disk Access concerns macOS application privacy permissions; a BSD mode alone does not describe every access decision.
For a folder you own, make only a justified, targeted correction after recording the original setting. Avoid treating recursive permission changes as a diagnostic test. For an application-owned or managed folder, use the application’s supported repair process or the administrator responsible for it.
Finally, repeat the exact operation that failed and inspect its output and exit status. Seeing a filename is useful evidence. Opening that file successfully is a different result.


