I have bash scripts running on Catalina beta 6. However, there is a narrow condition where I am stuck on the "operation not permitted" Scripts fail that under the following conditions:I have Applescript which executes bash shell script using administrator privileges.
Script example: do shell script "/users/user/documents/install.sh" with administrator privileges
In Catalina, i always get an execution error - operation not permitted (126) message - bash script is not executed. Even if bash script is empty, error is the same, so i assume bash script is not the problem. Tried to do it as root - no success.
If i remove with administrator privileges, script is executed, but that's not a solution because i need to run it with privileges.
In previous macOS versions the same script is working without problems.
Any ideas? Thx in advance!!!
Condition 1: The script tries to access a file on a pcie ahci ssd (SAMSUNG MZHPU512HCGL)
Condition 2: The bash script is invoked by cron.
Condition 3: Catalina
The same script invoked from the bash shell command line works fine.
I suspect the problem is cron runs jobs with a zsh shell, and there is something I need to do about this.