当前位置:网站首页>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 .
边栏推荐
- Typescript practice for SAP ui5
- LxC limits the number of CPUs
- Pytorch-Yolov5从0运行Bug解决:
- JVM knowledge points
- Li Kou interview question 02.08 Loop detection
- 整理了一份ECS夏日省钱秘籍,这次@老用户快来领走
- Which is better, industrial intelligent gateway or edge computing gateway? How to choose the right one?
- office_ Delete the last page of word (the seemingly blank page)
- "No war on the Western Front" we just began to love life, but we had to shoot at everything
- Yolov5 network modification tutorial (modify the backbone to efficientnet, mobilenet3, regnet, etc.)
猜你喜欢

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

Yolov5 network modification tutorial (modify the backbone to efficientnet, mobilenet3, regnet, etc.)

go 包的使用

Common sense of cloud server security settings
![[live broadcast review] the first 8 live broadcasts of battle code Pioneer have come to a perfect end. Please look forward to the next one!](/img/46/d36ae47c3d44565d695e8ca7f34980.jpg)
[live broadcast review] the first 8 live broadcasts of battle code Pioneer have come to a perfect end. Please look forward to the next one!

Federal learning: dividing non IID samples according to Dirichlet distribution

The first practical project of software tester: web side (video tutorial + document + use case library)

树莓派GPIO引脚控制红绿灯与轰鸣器

MySQL error: expression 1 of select list is not in group by claim and contains nonaggre

Finally got byte offer. The 25-year-old inexperienced perception of software testing is written to you who are still confused
随机推荐
Go language naming specification
Cloud service selection of enterprises: comparative analysis of SaaS, PAAS and IAAs
Sorted out an ECS summer money saving secret, this time @ old users come and take it away
Opencv learning example code 3.2.4 LUT
【提高课】ST表解决区间最值问题【2】
WiFi 5GHz frequency
[JS -- map string]
阿里云polkit pkexec 本地提权漏洞
Go语言介绍
[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)
【c语言】动态规划---入门到起立
Pytorch-Yolov5從0運行Bug解决:
Thinkphp6 limit interface access frequency
FAQ | FAQ for building applications for large screen devices
[C language] Dynamic Planning --- from entry to standing up
Installation and use of blue lake
Suggestions on settlement solution of u standard contract position explosion
Websites that it people often visit
Raspberry pie GPIO pin controls traffic light and buzzer
60后关机程序
