简体   繁体   中英

AWS CLI permission denied?

I recently downloaded AWS CLI for Windows. 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

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. 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. I'm also planning to submit this to CB.

Here's how to disable protection:

  • Find the Carbon Black icon in the bottom right-hand corner of the taskbar.
  • Right-click the icon and then select Open.

CB 代理图标

  • In the CB Agent window, you should see a "Protection" toggle at the top right. Click Off

CB 代理窗口

You should now be able to install the AWS CLI, or use it if you had already installed it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM