Error Codes Wiki

Linux errno 1 (EPERM) — Operation Not Permitted

Warningerrno

Overview

Linux errno 1 (EPERM) means the process does not have the required permissions to perform the requested operation.

Key Details

  • EPERM — operation not permitted by the kernel
  • Different from EACCES — EPERM means the operation is fundamentally not allowed
  • Common when non-root users attempt privileged operations
  • Can also occur with SELinux or AppArmor denials

Common Causes

  • Attempting a root-only operation as normal user
  • SELinux or AppArmor security policy denial
  • Capability missing for the operation
  • Immutable file attribute set

Steps

  1. 1Run the command with sudo for root privileges
  2. 2Check SELinux status: sestatus and audit log
  3. 3Check file attributes: lsattr filename
  4. 4Verify process capabilities with getpcaps

Tags

linuxerrnoerrno 1 epermtroubleshootingfix

More in Errno

Frequently Asked Questions

EACCES is a file permission issue. EPERM means the operation itself is not allowed regardless of permissions.