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

granted sso populate fails due to insufficient directory permissions #813

Open
jpeeler opened this issue Dec 6, 2024 · 0 comments
Open

Comments

@jpeeler
Copy link

jpeeler commented Dec 6, 2024

This is done when there's no previously existing .aws directory.

$ granted sso populate --sso-region eu-west-2 https://foo.awsapps.com/start/ 
[i] created AWS config file: /home/jpeeler/.aws
[✘] open /home/jpeeler/.aws/config: permission denied
$ ls -la
total 36
drwx------ 5 jpeeler jpeeler 4096 Dec  6 21:46 .
drwxr-xr-x 1 root    root    4096 Dec  6 21:45 ..
drw-r--r-- 2 jpeeler jpeeler 4096 Dec  6 21:46 .aws

Works fine after executing chmod +x .aws/.

Looks like it's safe to change the constant here:

USER_READ_WRITE_PERM = 0644

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant