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

File permission after "cargo login" too permissive #1643

Closed
cesarb opened this issue May 22, 2015 · 1 comment
Closed

File permission after "cargo login" too permissive #1643

cesarb opened this issue May 22, 2015 · 1 comment

Comments

@cesarb
Copy link
Contributor

cesarb commented May 22, 2015

$ ls -la ~/.cargo
total 16
drwxrwxr-x.  3 cesarb cesarb 4096 Mai 21 22:58 .
drwx------. 43 cesarb cesarb 4096 Mai 21 22:55 ..
-rw-rw-r--.  1 cesarb cesarb   55 Mai 21 22:58 config
drwxrwxr-x.  5 cesarb cesarb 4096 Mai 17 10:51 registry
$ cargo --version
cargo 0.2.0-nightly (efb482d 2015-04-30) (built 2015-04-30)

The permission for either the config file or the directory should not be world-readable, since the config file has the API key for crates.io. It should also complain if it finds an already existing world-readable config file.

@alexcrichton
Copy link
Member

Closing as a dupe of #930, but thanks!

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

2 participants