Chris Hansen
Chris Hansen

Reputation: 8657

I'm tried installing aws command line tool

I tried installing the aws command line tool to run the command

aws

on linux

i tried installing it using pip but I get an error http://docs.aws.amazon.com/cli/latest/userguide/installing.html#install-bundle-other-os

/bin/aws: Permission denied

whenever I run the command

aws help 

what should I do?

Upvotes: 5

Views: 4259

Answers (2)

Brad Parks
Brad Parks

Reputation: 72001

I had the same issue, and couldn't get it to work. I uninstalled it using the directions on the aws site

I then installed it using homebrew on linux instead, and it works fine:

# as of writing installs aws-cli v2.X
brew install awscli

Upvotes: 0

wimh
wimh

Reputation: 15232

The output of ls -l /bin/aws shows:

-rw-r--r--. 1 root root 814 Oct 22 18:09 /bin/aws

Which means you have read/write permissions, but no execute permissions. To fix that, you have to run chmod like this:

chmod 755 /bin/aws

After this the output of ls -l /bin/aws should show:

-rwxr-xr-x. 1 root root 814 Oct 22 18:09 /bin/aws

The x means you also have execute permissions now. Also other users will have execute permission. If there are no other limitations, other users can execute it too.

Upvotes: 5

Related Questions