当前位置:网站首页>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 .
边栏推荐
- 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
- Is the product of cancer prevention medical insurance safe?
- The confusion I encountered when learning stm32
- Today's plan: February 15, 2022
- Common sense of cloud server security settings
- 整理了一份ECS夏日省钱秘籍,这次@老用户快来领走
- go 语言命名规范
- 10 minutes to understand CMS garbage collector in JVM
- Spring recruitment of Internet enterprises: Kwai meituan has expanded the most, and the annual salary of technical posts is up to nearly 400000
- Go language naming specification
猜你喜欢

《动手学深度学习》(二)-- 多层感知机

Federal learning: dividing non IID samples according to Dirichlet distribution

Introduction to vmware workstation and vSphere

Pytoch --- use pytoch to predict birds

"No war on the Western Front" we just began to love life, but we had to shoot at everything
![[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)](/img/e1/620443dbc6ea8b326e1242f25d6d74.jpg)
[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)

Pytorch---使用Pytorch实现U-Net进行语义分割

Installation et utilisation du lac bleu

JVM知识点

深圳打造全球“鸿蒙欧拉之城”将加快培育生态,优秀项目最高资助 1000 万元
随机推荐
C language: examples of logical operation and judgment selection structure
Force buckle 540 A single element in an ordered array
Three ways for programmers to learn PHP easily and put chaos out of order
Uni app - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
go 函数
Pytorch-Yolov5从0运行Bug解决:
Wpviewpdf Delphi and Net PDF viewing component
MySQL advanced SQL statement 2
C语言:逻辑运算和判断选择结构例题
[JS event -- event flow]
Is the product of cancer prevention medical insurance safe?
【c语言】基础篇学习笔记
Use a mask to restrict the input of the qlineedit control
Today's plan: February 15, 2022
Delete the code you wrote? Sentenced to 10 months!
Recently, the weather has been extremely hot, so collect the weather data of Beijing, Shanghai, Guangzhou and Shenzhen last year, and make a visual map
初识P4语言
Wechat applet - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
Qt插件之Qt Designer插件实现
C language guessing numbers game
