在Linux上安装AWS CLI后,权限被拒绝

在看到成功安装AWS CLI后,我在运行python 2.6.6的CentOS 6.6版本上以root用户身份login时得到权限被拒绝的基本testing错误。

root@hostname [~]# ./awscli-bundle/install -b ~/bin/aws Running cmd: /usr/bin/python virtualenv.py --python /usr/bin/python /root/.local/lib/aws Running cmd: /root/.local/lib/aws/bin/pip install --no-index --find-links file:///root/awscli-bundle/packages awscli-1.10.58.tar.gz You can now run: /root/bin/aws --version root@hostname [~]# /root/bin/aws --version -bash: /root/bin/aws: Permission denied root@hostname [~]# aws help -bash: /root/bin/aws: Permission denied 

更新

  ls -lZ /root/bin/aws lrwxrwxrwx root root ? /root/bin/aws -> /root/.local/lib/aws/bin/aws 

我是一个开发人员,系统pipe理员的知识水平很低,我不知道我的下一步。 我希望能够自动从这个服务器的网站备份tarballs存储到我的S3桶。 如何解决权限问题?

更新2在注释中的每个build议我设法启用EPEL存储库和安装点,以下我似乎已经安装aws像以前一样没有错误,但我仍然得到permision拒绝

 root@hostname [~]# yum install epel-release [succeeded] root@hostname [~]# sudo yum install python-pip [succeeded] root@hostname [~]# /usr/bin/pip --version pip 7.1.0 from /usr/lib/python2.6/site-packages (python 2.6) root@hostname [~]# sudo pip install awscli [100+ of lines of output] Successfully installed awscli-1.10.59 botocore-1.4.49 colorama-0.3.7 docutils-0. 12 futures-3.0.5 jmespath-0.9.0 ordereddict-1.1 pyasn1-0.1.9 python-dateutil-2.5 .3 rsa-3.4.2 s3transfer-0.1.2 simplejson-3.3.0 six-1.10.0 root@hostname [~]# which aws /usr/bin/aws root@hostname [~]# /usr/bin/aws --version -bash: /usr/bin/aws: Permission denied root@hostname [~]# /usr/bin/aws help -bash: /usr/bin/aws: Permission denied root@hostname [~]# aws --version -bash: /usr/bin/aws: Permission denied root@hostname [~]# aws help -bash: /usr/bin/aws: Permission denied root@hostname [~]# ls -lZ /usr/bin/aws -rw-r--r-- root root ? /usr/bin/aws ls -lZ /usr/bin/ > ~/ls.txt excerpt from ls.txt: -rwxr-xr-x root root ? auvirt* lrwxrwxrwx root root ? awk -> ../../bin/gawk* -rw-r--r-- root root ? aws -rw-r--r-- root root ? aws_bash_completer -rw-r--r-- root root ? aws.cmd -rw-r--r-- root root ? aws_completer -rw-r--r-- root root ? aws_zsh_completer.sh -rwxr-xr-x root root ? b43-fwcutter* -rwxr-xr-x root root ? base64* 

我不知道为什么,但是/ usr / bin中的所有aws *命令没有设置执行位。 为什么不尝试chmod +x /usr/bin/aws*试?