Error Codes Wiki

Linux errno 13 (EACCES) — Permission Denied

Warningerrno

About Linux errno 13 (EACCES)

Linux errno 13 (EACCES) means the process does not have the necessary file system permissions to access the requested resource. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.

Here are the key things to understand: EACCES — standard Unix permission denied. Based on file owner, group, and other permission bits. Check with ls -la to see file permissions. Different from EPERM (operation-level denial). Understanding these fundamentals will help you diagnose and resolve this issue more effectively.

The most common reasons this occurs include: File permissions do not allow the requested access. Execute permission missing for scripts or binaries. Directory without execute permission blocks traversal. SELinux context mismatch. Identifying the root cause is the first step toward finding the right solution.

To resolve this, follow these recommended steps: Check permissions: ls -la filename. Change permissions: chmod u+rwx filename. Change ownership: chown user:group filename. Check SELinux context: ls -Z filename. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.

This article is part of our Linux Error Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.

Quick Answer

How do I read Unix permissions?

rwxr-xr-- means: owner has rwx, group has r-x, others have r-- (read only).

Overview

Linux errno 13 (EACCES) means the process does not have the necessary file system permissions to access the requested resource.

Key Details

  • EACCES — standard Unix permission denied
  • Based on file owner, group, and other permission bits
  • Check with ls -la to see file permissions
  • Different from EPERM (operation-level denial)

Common Causes

  • File permissions do not allow the requested access
  • Execute permission missing for scripts or binaries
  • Directory without execute permission blocks traversal
  • SELinux context mismatch

Steps

  1. 1Check permissions: ls -la filename
  2. 2Change permissions: chmod u+rwx filename
  3. 3Change ownership: chown user:group filename
  4. 4Check SELinux context: ls -Z filename

Tags

linuxerrnoerrno 13 eaccestroubleshootingfix

More in Errno

Frequently Asked Questions

rwxr-xr-- means: owner has rwx, group has r-x, others have r-- (read only).