Bird
0
0

You tried to install AWS CLI on Linux but got a 'permission denied' error when running sudo ./aws/install. What should you do?

medium📝 Debug Q6 of 15
AWS - CLI
You tried to install AWS CLI on Linux but got a 'permission denied' error when running sudo ./aws/install. What should you do?
AChange the installer file permissions to executable using <code>chmod +x aws/install</code>
BRun the command without sudo
CRe-download the installer with curl
DInstall Python first
Step-by-Step Solution
Solution:
  1. Step 1: Understand 'permission denied' on running installer

    This error means the installer file lacks execute permissions.
  2. Step 2: Fix permissions before running installer

    Use chmod +x aws/install to make it executable, then run with sudo.
  3. Final Answer:

    Change the installer file permissions to executable using chmod +x aws/install -> Option A
  4. Quick Check:

    Permission denied fix = chmod +x + sudo run = A [OK]
Quick Trick: Make installer executable before running with sudo [OK]
Common Mistakes:
MISTAKES
  • Running without sudo
  • Ignoring file permissions
  • Assuming Python needed for installer

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes