当前位置:网站首页>unable to execute xxx. SH: operation not permitted
unable to execute xxx. SH: operation not permitted
2022-07-02 04:17:00 【Mingmingruyue senior】
One 、 background
Previously created locally shell Script , stay iterm in cd Go to the directory , Can pass ./xxx.sh The way to execute .
Today, I suddenly found the following error :
unable to execute xxx.sh : Operation not permitted
perhaps
-bash: ./xxx.sh: /usr/bin/env: bad interpreter: Operation not permitted
Recently upgraded the system to Monterey edition , The suspicion has something to do with the system upgrade .
Two 、 Analysis methods
ls -l View permissions 
It is found that you have execution permission
Use ls [email protected] To view additional properties 
Search several attributes inside and find some clues
The apple system has one GateKeeper protection mechanism ( since OSX 10.5 Join in ). Files downloaded from the Internet , Will be automatically marked com.apple.quarantine sign , Immune isolation , The system limits the file according to this additional attribute .
3、 ... and 、 terms of settlement
sudo xattr -r -d com.apple.quarantine + Directory path
Enter the system password .

After setting up perform ./test.sh It's found to work properly
It's not easy to create , If this article helps you , Welcome to thumb up 、 Collection and attention , Your support and encouragement , It's the biggest driving force of my creation .
边栏推荐
- First acquaintance with string+ simple usage (II)
- Yyds dry goods inventory kubernetes introduction foundation pod concept and related operations
- [C language] basic learning notes
- 云服务器的安全设置常识
- Thinkphp6 limit interface access frequency
- How much is the tuition fee of SCM training class? How long is the study time?
- Wechat applet calculates the distance between the two places
- Feature Engineering: summary of common feature transformation methods
- Pytoch --- use pytoch to predict birds
- Realizing deep learning framework from zero -- Introduction to neural network
猜你喜欢

Wpviewpdf Delphi and Net PDF viewing component

C language: examples of logical operation and judgment selection structure
![[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)](/img/e1/620443dbc6ea8b326e1242f25d6d74.jpg)
[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)

How to model noise data? Hong Kong Baptist University's latest review paper on "label noise representation learning" comprehensively expounds the data, objective function and optimization strategy of

Federal learning: dividing non IID samples according to Dirichlet distribution

The confusion I encountered when learning stm32

BiShe cinema ticket purchasing system based on SSM

Common sense of cloud server security settings

Delete the code you wrote? Sentenced to 10 months!

Learn more about materialapp and common attribute parsing in fluent
随机推荐
[JS -- map string]
go 包的使用
QT designer plug-in implementation of QT plug-in
Thinkphp6 limit interface access frequency
5g era is coming in an all-round way, talking about the past and present life of mobile communication
10 minutes to understand CMS garbage collector in JVM
Pytorch---使用Pytorch实现U-Net进行语义分割
Shenzhen will speed up the cultivation of ecology to build a global "Hongmeng Oula city", with a maximum subsidy of 10million yuan for excellent projects
如何解决在editor模式下 无法删除物体的问题
C语言猜数字游戏
Learn more about materialapp and common attribute parsing in fluent
Demonstration description of integrated base scheme
Go branch and loop
Installation et utilisation du lac bleu
C language guessing numbers game
Yolov5 network modification tutorial (modify the backbone to efficientnet, mobilenet3, regnet, etc.)
C language: examples of logical operation and judgment selection structure
Wpviewpdf Delphi and Net PDF viewing component
Common locks in MySQL
go 语言命名规范
