Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws configure fails with [Errno 13] Permission denied #3235

Closed
KimberleySDU opened this issue Apr 3, 2018 · 4 comments
Closed

aws configure fails with [Errno 13] Permission denied #3235

KimberleySDU opened this issue Apr 3, 2018 · 4 comments
Labels
guidance Question that needs advice or information.

Comments

@KimberleySDU
Copy link

I am installing AWSCLI on Mac OS, but can't get past the configure-step because after entering the 4 settings (access key ID, secret access key, default region & default output format) I get the following error:

[Errno 13] Permission denied: '/Users//.aws/credentials'

I have also tried creating a file in the .aws folder, but it won't let me. I am not allowed to do anything in this folder. I have tried giving myself permission using the "sudo" command, but it does not work.

I noticed this issue was reported by someone on Windows as well, but that ticket has been closed since due to lack of response #3032 . I am having this issue on Mac OS

@KimberleySDU
Copy link
Author

Never mind. I figured it out. I had changed the permissions for the .aws folder using sudo chmod, but needed to do it for .aws/credentials and .aws/config as well. In the end I also made my user owner of both files (using sudo chown). After doing that I was able to succesfully configure AWS CLI and proceed.

@justnance justnance added the guidance Question that needs advice or information. label Dec 7, 2018
@nick-brady
Copy link

nick-brady commented May 24, 2019

I was surprised to see this error myself. When I went to the file

$ ls -al
-r--------    1 nicholasbrady  staff   116 May 24 14:53 credentials

I saw that it was a read only file even for the owner of the file... so I updated it to be writable and sure enough it worked 🎉😬

$ chmod +w credentials 
$ ls -al
-rw-------    1 nicholasbrady  staff   116 May 24 14:53 credentials

quick note and why I even made this comment - You don't need sudo since you already own the file. cheers 👍 hopefully it helps some of you :)

@stevesolun
Copy link

stevesolun commented Jun 2, 2019

In my case it the same -rw------- and I still can't install.packages("aws.s3") or library(aws.s3).

This is full line:

-rw------- 1 root root 578 May 30 15:54 .aws/credentials

@shubhamdixit863
Copy link

sudo aws configure worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Question that needs advice or information.
Projects
None yet
Development

No branches or pull requests

5 participants