title: AWS EC2 Permissions Denied /usr/local/bin cURL
body: <p>I am trying to follow <a href="https://docs.docker.com/machine/install-machine/" rel="nofollow noreferrer">this</a> documentation and install docker machine on my EC2 instance. However, the curl command: </p>
  
  <pre><code>curl -L https://github.com/docker/machine/releases/download/v0.8.2/docker-machine-`uname -s`-`uname -m` &gt;/usr/local/bin/docker-machine
  </code></pre>
  
  <p>quits with the error: </p>
  
  <blockquote>
    <p>-bash: /usr/local/bin/docker-machine: Permission denied</p>
  </blockquote>
  
  <p>I tried to curl into the home directory, hoping that it would change the permissions on the directory and then copy it to destination, but it didn't work. </p>
  
  <p>How can I by-pass this? Clearly, the ec2-user is lacking the root privileges on some directories.</p>