EPERM
EPERM, short for operation not permitted, is an errno value used by POSIX-compliant operating systems to indicate that a requested operation is not allowed by the system policy or by the privileges currently held by the process. It signals that the operation itself is disallowed, even if the target resource could be accessed under different circumstances.
Common situations include attempting to change a file’s ownership or permissions without sufficient privileges, or trying
EPERM is distinct from EACCES, which indicates that access to a resource is denied due to its
In the C language and many POSIX interfaces, EPERM is defined in errno.h and is part of
Related errno values include EACCES, ENOENT, EINVAL, and EISDIR. The meaning of EPERM can vary with the