OSX bad interpreter: Operation not permitted

Error “bash bad interpreter: Operation not permitted” while tryimg to run a oerfectly good bash script in the terminal.

 

Fix

$ ls -l@ script.sh

if output contains “com.apple.quarantine” then delete attribute

$ xattr -d com.apple.quarantine script.sh

Related Blogs

Posted by Sachin Ranadive | May 31, 2019
Partition USB drive for Time Machine with a data partition
Objective is to partition a 2 TB drive into 2 partitions, as follows; 1 TB Time Machine partition, formatted as Journaled HPFS+ Case Sensitive, Encrypted. 1 TB Data partition, formatted...
Posted by Sachin Ranadive | May 18, 2019
Microarchitectural Data Sampling (MDS) Vulnerability in computers with Intel CPU
Intel CPU architecture has been found to be vulnerable to a “Microarchitectural Data Sampling (MDS) attacks”. Please update the OS and apply Intel provided patch on all Intel based computers,...
Posted by Sachin Ranadive | July 29, 2018
Create CentOS 7 bootable USB on OSX
Create a bootable USB drive with the CentOS 7 installer ISO file on Mac OSX (Apple MacBook). Steps: Format a USB drive as exFAT with Disk Utility Download CentOS 7...