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

Strange default umask value #9916

Closed
drpowell opened this issue Nov 28, 2019 · 4 comments
Closed

Strange default umask value #9916

drpowell opened this issue Nov 28, 2019 · 4 comments

Comments

@drpowell
Copy link

umask: 0x1FF, // S_IRWXU | S_IRWXG | S_IRWXO

The default umask (0777) is unusual and causes files to be created as unreadable by anyone. A more typical umask would by 022

@sbc100
Copy link
Collaborator

sbc100 commented Dec 4, 2019

Sure we can change that to 022. Why do you care? I guess for nodefs where maybe permissions are real?

@drpowell
Copy link
Author

drpowell commented Dec 5, 2019

Exactly, with nodefs files are created with no permission bits - and cannot be chmoded without changing umask first

@sbc100
Copy link
Collaborator

sbc100 commented Dec 13, 2019

Feel free to upload a patch + test. Otherwise, I've marked this as "good first bug" and "help wanted" since it seems pretty straight forward.

@stale
Copy link

stale bot commented Dec 13, 2020

This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant.

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

No branches or pull requests

2 participants