You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Oracle Linux - "Operation Not Permitted" Error When Running Custom Scripts

Applies to:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64

Symptoms:
When attempting to execute a script, the following error message appears:

[root@localhost]# bash /tmp/test.sh
Operation not permitted

This issue occurs despite having proper file permissions set for execution. The error is triggered when fapolicyd is running on the system, which enforces file access policies.

Cause:
When fapolicyd is enabled, it blocks access to any files that are not explicitly marked as trusted.

This leads to the "Operation not permitted" error when attempting to execute untrusted scripts.
fapolicyd is a security service that manages file access based on defined trust policies.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!