Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I'm tried installing aws command line tool

Tags:

aws-cli

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?

like image 281
Chris Hansen Avatar asked Oct 22 '15 18:10

Chris Hansen


1 Answers

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.

like image 200
wimh Avatar answered Sep 24 '22 02:09

wimh