Similar to EPERM, this errno, "Permission denied", implies insufficient credentials to perform an operation. This value, however, mostly deals with filesystem and System V IPC ownership: if you aren't given access, this is the error you'll get. If you don't have permissions to perform some administrative function, it will be EPERM. If root, you most likely won't get this error.