Can't open perl script "/NFSmountDir/Script.pl": Operation not permitted.

bibinthomasa
New Contributor II

I am getting an issue on Mac mini (Late 2014) after upgrading it from 10.14.6 to macOS Monterey 12.7.3 through downloading installer from App Store. It says it cannot open a perl script. I've given the full disk access to terminal, sshd-keygen-wrapper. I am still getting the same issue. I am able to run the script directly from my ssh terminal but when automation tool (through ssh) tries to run the script the error is getting. /NFSmountDir is actually /System/Volumes/Data/NFSmountDir

2 ACCEPTED SOLUTIONS

bibinthomasa
New Contributor II

I am wondering what security within the newer version of MacOS that is blocking the script from being ran.

View solution in original post

bibinthomasa
New Contributor II

The issue has now been resolved. The problem was related to the 'full disk access' feature on Mac. However, the challenge was identifying which component needed full disk access. The automation tool that attempts to execute the command to initiate/run the Perl script is a Java-based open-source automation platform. Consequently, I granted full disk access to Java, and now the issue is resolved.

View solution in original post

2 REPLIES 2

bibinthomasa
New Contributor II

I am wondering what security within the newer version of MacOS that is blocking the script from being ran.

bibinthomasa
New Contributor II

The issue has now been resolved. The problem was related to the 'full disk access' feature on Mac. However, the challenge was identifying which component needed full disk access. The automation tool that attempts to execute the command to initiate/run the Perl script is a Java-based open-source automation platform. Consequently, I granted full disk access to Java, and now the issue is resolved.