Linux & OS Internals
Debugging "Permission denied"
A file that shows -rw-r--r-- can still be denied. Learn the three checks the kernel makes, and the one command that shows which one failed.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Linux & OS Internals
- SO_REUSEPORTBeginner · 4 min
SO_REUSEPORT allows multiple sockets to bind a shared local port.
- "No space left on device" with free spaceBeginner · 5 min
The disk is only 41% full and writes still fail. The filesystem ran out of file records, not bytes.
- Mount namespacesBeginner · 4 min
Mount namespaces provide isolated filesystem mount views.
- Process lifecycleBeginner · 4 min
Explain how a process moves from creation to exit, why an exited child can stay as a zombie until its parent calls wait, and how orphans are handled.
- fork exec waitIntermediate · 4 min
Explain how fork and exec create a new program, how the parent collects the child's status, and why an inherited descriptor can keep a port or pipe open.
- Threads and pthreadsIntermediate · 4 min
Explain how threads share a process's memory and descriptors, why shared memory needs locks, and why a higher thread count does not speed up lock-bound work.