An error occurred AccessDenied when running aws --version command

0 votes

Hi Guys,

I am getting access denied error, whenever I tried to run any aws cli command in my system. How can I solve this error?

Apr 27, 2020 in AWS by akhtar
• 38,210 points
453 views

1 answer to this question.

0 votes

Hi@akhtar,

You may got this error if the AWS CLI program file doesn't have "run" permission. On Linux or macOS, ensure that

the aws program has run permissions for the calling user. Typically, the permissions are set to 755.

To add run permission for your user, use the below given command.

 $ chmod +x /root/.local/bin/aws 

Hope this will help.

answered Apr 27, 2020 by MD
• 95,320 points

Related Questions In AWS

0 votes
1 answer

An error occurred (AccessDenied) when calling the CreateBucket operation: Access Denied

Hi@akhtar, You are getting this error because your ...READ MORE

answered Oct 7, 2020 in AWS by MD
• 95,320 points
892 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,140 points
2,699 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,140 points
3,194 views
0 votes
2 answers
0 votes
1 answer