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

Please support creating temporary directories with mode 0700 #114

Closed
joshtriplett opened this issue Jan 26, 2020 · 3 comments
Closed

Please support creating temporary directories with mode 0700 #114

joshtriplett opened this issue Jan 26, 2020 · 3 comments

Comments

@joshtriplett
Copy link
Contributor

tempfile creates temporary files with mode 0600, but doesn't seem to restrict permissions on temporary directories at all. I'd like to create a temporary directory with mode 0700 (and not rely on the current umask to restrict write access). Ideally, I'd like tempfile to do so by default, for security reasons; if there's some reason the default permissions can't change, then I'd like to have an option to set them.

@Stebalien
Copy link
Owner

See #61. Basically: needs implementation.

@lucab
Copy link

lucab commented Jul 16, 2020

I also have a usecase where explicitly setting the permission mask (0664 in my case) without relying on the default umask would be helpful.
I think that having a new setter method on the builder, taking a proper Pemissions argument, would be great.
#61 is not currently going in that direction due to shortcomings on non-Linux platforms.

@Stebalien
Copy link
Owner

Implemented.

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

3 participants