Oracle Linux - "Operation Not Permitted" Error When Running Custom Scripts
in Linux
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.
Tagged:
0