[英]AWS CLI permission denied?
I recently downloaded AWS CLI for Windows.我最近为 Windows 下载了 AWS CLI。 I was able to use it just fine the first day however it is now giving me a Permission Denied error on Git Bash whenever I try to do anything with aws.我第一天就可以很好地使用它,但是现在每当我尝试使用 aws 做任何事情时,它都会在 Git Bash 上给我一个 Permission Denied 错误。
$ aws
bash: /c/Program Files/Amazon/AWSCLIV2/aws: Permission denied
I've tried uninstalling, reinstalling, restarting my computer, and still nothing.我试过卸载,重新安装,重新启动我的电脑,但仍然没有。 I've even tried messing with the permissions on the folder but it still says I dont even have permission to do that.我什至尝试过弄乱文件夹的权限,但它仍然说我什至没有权限这样做。 Any help?有什么帮助吗?
In my case, this was caused by an AV Agent, specifically Carbon Black, identifying the CLI executable as a threat.就我而言,这是由 AV 代理(特别是 Carbon Black)将 CLI 可执行文件识别为威胁造成的。 Obviously this is a false positive and an issue with Carbon Black.显然,这是一个误报,也是炭黑的一个问题。
To resolve the problem I disabled "Protection" temporarily, did what I needed to do, and then uninstalled the CLI until I can get a hold of the responsible party within our organization.为了解决这个问题,我暂时禁用了“保护”,做了我需要做的事情,然后卸载了 CLI,直到我可以在我们的组织中找到责任方。 I'm also planning to submit this to CB.我也打算将此提交给 CB。
Here's how to disable protection:以下是禁用保护的方法:
You should now be able to install the AWS CLI, or use it if you had already installed it.您现在应该能够安装 AWS CLI,或者如果您已经安装了它,也可以使用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.