当前位置:网站首页>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 .
边栏推荐
- Go function
- "No war on the Western Front" we just began to love life, but we had to shoot at everything
- Use of go package
- 云服务器的安全设置常识
- Pandora IOT development board learning (HAL Library) - Experiment 2 buzzer experiment (learning notes)
- JVM knowledge points
- Monkey测试
- 整理了一份ECS夏日省钱秘籍,这次@老用户快来领走
- Uni app - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
- 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
猜你喜欢

Federal learning: dividing non IID samples according to Dirichlet distribution

Go语言介绍

WPViewPDF Delphi 和 .NET 的 PDF 查看组件

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

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

JVM知识点

BiShe cinema ticket purchasing system based on SSM
![[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)](/img/e1/620443dbc6ea8b326e1242f25d6d74.jpg)
[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)

树莓派GPIO引脚控制红绿灯与轰鸣器
随机推荐
Is it safe to open an account with first venture securities? I like to open an account. How can I open it?
[JS -- map string]
uni-app - 实现获取手机验证码倒计时 60 秒(手机号+验证码登录功能)
2022-07-01: at the annual meeting of a company, everyone is going to play a game of giving bonuses. There are a total of N employees. Each employee has construction points and trouble points. They nee
Is the product of cancer prevention medical insurance safe?
A summary of common interview questions in 2022, including 25 technology stacks, has helped me successfully get an offer from Tencent
Use a mask to restrict the input of the qlineedit control
Bitmap principle code record
Common sense of cloud server security settings
60后关机程序
MySQL error: expression 1 of select list is not in group by claim and contains nonaggre
BiShe cinema ticket purchasing system based on SSM
Okcc why is cloud call center better than traditional call center?
Thinkphp6 limit interface access frequency
WiFi 5GHz frequency
Go语言介绍
Pytoch --- use pytoch for image positioning
Go variables and constants
Go function
Lei Jun wrote a blog when he was a programmer. It's awesome
